var Za = Object.defineProperty;
var Qa = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var q = (e, t, n) => Qa(e, typeof t != "symbol" ? t + "" : t, n);
import { getCurrentInstance as el, inject as Pt, cloneVNode as hs, defineComponent as pe, openBlock as W, createElementBlock as oe, normalizeClass as me, renderSlot as Le, computed as ie, normalizeStyle as wt, createElementVNode as G, toRef as Wi, toRefs as Jn, resolveComponent as Ve, createBlock as ye, createCommentVNode as Pe, provide as vs, reactive as di, ref as fe, onMounted as ft, onUpdated as Zn, watch as ze, onBeforeUnmount as fn, readonly as tl, onDeactivated as nl, createVNode as X, Fragment as lt, Teleport as rl, mergeProps as il, Transition as ol, withDirectives as sl, vShow as al, nextTick as Ur, withCtx as ce, createTextVNode as Je, toDisplayString as re, withModifiers as ll, onUnmounted as gs, TransitionGroup as cl, isVNode as ul, render as qi, shallowRef as sn, unref as M, h as Ki, createStaticVNode as ys, renderList as mr } from "vue";
import { is as Q, getBusinessObject as pn, isAny as Wr } from "bpmn-js/lib/util/ModelUtil";
import bs from "bpmn-js/lib/NavigatedViewer";
import ws from "diagram-js-grid-bg";
import dl from "bpmn-js-token-simulation/lib/animation";
import fl from "bpmn-js-token-simulation/lib/features/colored-scopes";
import pl from "bpmn-js-token-simulation/lib/features/context-pads";
import ml from "bpmn-js-token-simulation/lib/features/simulation-state";
import hl from "bpmn-js-token-simulation/lib/features/show-scopes";
import vl from "bpmn-js-token-simulation/lib/features/token-count";
import gl from "bpmn-js-token-simulation/lib/features/exclusive-gateway-settings";
import yl from "bpmn-js-token-simulation/lib/features/inclusive-gateway-settings";
import bl from "bpmn-js-token-simulation/lib/features/palette";
import wl from "bpmn-js-token-simulation/lib/simulator/Scope";
import { ScopeTraits as Gi } from "bpmn-js-token-simulation/lib/simulator/ScopeTraits";
import { filterSet as Tn, findSet as Yi } from "bpmn-js-token-simulation/lib/simulator/util/SetUtil";
import { eventsMatch as Xi } from "bpmn-js-token-simulation/lib/simulator/util/EventsUtil";
import { isInterrupting as El, isBoundaryEvent as In, is as $e, isStartEvent as hr, isEventSubProcess as Ji, isCompensationEvent as Zi, getBusinessObject as Sl, isAny as Es, isImplicitStartEvent as _l } from "bpmn-js-token-simulation/lib/simulator/util/ModelUtil";
import Cl from "bpmn-js-token-simulation/lib/simulator/behaviors";
import { SCOPE_CREATE_EVENT as Qn, RESET_SIMULATION_EVENT as mn, TOGGLE_MODE_EVENT as qt, TRACE_EVENT as Ss, PAUSE_SIMULATION_EVENT as kl, PLAY_SIMULATION_EVENT as Tl, SCOPE_FILTER_CHANGED_EVENT as Ol, SCOPE_DESTROYED_EVENT as Al } from "bpmn-js-token-simulation/lib/util/EventHelper";
import _s from "bpmn-js-token-simulation/lib/features/scope-filter";
import Pl from "bpmn-js-token-simulation/lib/features/element-colors";
import xl from "bpmn-js-token-simulation/lib/features/element-support/ElementSupport";
import { escapeHTML as Dl } from "diagram-js/lib/util/EscapeUtil";
import { isAny as Ml } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
import $l from "bpmn-js/lib/draw/BpmnRenderer";
import { getDi as Qi, getStrokeColor as le, getFillColor as Ce, getSemantic as vr, isThrowEvent as Ll, isTypedEvent as tt, black as eo } from "bpmn-js/lib/draw/BpmnRenderUtil";
import { rotate as Il } from "diagram-js/lib/util/SvgTransformUtil";
import Nl from "bpmn-js/lib/draw/PathMap";
import Bl from "bpmn-js-i18n-zh/lib/bpmn-js";
import { useI18n as fi } from "vue-i18n";
import Rl from "bpmn-js/lib/features/modeling";
const pi = Object.prototype.toString;
function mi(e) {
  return pi.call(e) === "[object Array]";
}
function hi(e) {
  return pi.call(e) === "[object String]";
}
function Kt(e) {
  return pi.call(e) === "[object Number]" && e === e;
}
function zl(e) {
  return e === void 0;
}
function er(e) {
  return typeof e == "function";
}
const tr = Symbol("ArcoConfigProvider");
var Fl = Object.defineProperty, jl = Object.defineProperties, Vl = Object.getOwnPropertyDescriptors, to = Object.getOwnPropertySymbols, Hl = Object.prototype.hasOwnProperty, Ul = Object.prototype.propertyIsEnumerable, no = (e, t, n) => t in e ? Fl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wl = (e, t) => {
  for (var n in t || (t = {}))
    Hl.call(t, n) && no(e, n, t[n]);
  if (to)
    for (var n of to(t))
      Ul.call(t, n) && no(e, n, t[n]);
  return e;
}, ql = (e, t) => jl(e, Vl(t));
const Kl = "A", Gl = "arco", qr = "$arco", hn = (e) => {
  var t;
  return (t = e == null ? void 0 : e.componentPrefix) != null ? t : Kl;
}, vn = (e, t) => {
  var n;
  t && t.classPrefix && (e.config.globalProperties[qr] = ql(Wl({}, (n = e.config.globalProperties[qr]) != null ? n : {}), {
    classPrefix: t.classPrefix
  }));
}, xe = (e) => {
  var t, n, r;
  const i = el(), o = Pt(tr, void 0), s = (r = (n = o == null ? void 0 : o.prefixCls) != null ? n : (t = i == null ? void 0 : i.appContext.config.globalProperties[qr]) == null ? void 0 : t.classPrefix) != null ? r : Gl;
  return e ? `${s}-${e}` : s;
};
var Cs = function() {
  if (typeof Map < "u")
    return Map;
  function e(t, n) {
    var r = -1;
    return t.some(function(i, o) {
      return i[0] === n ? (r = o, !0) : !1;
    }), r;
  }
  return (
    /** @class */
    function() {
      function t() {
        this.__entries__ = [];
      }
      return Object.defineProperty(t.prototype, "size", {
        /**
         * @returns {boolean}
         */
        get: function() {
          return this.__entries__.length;
        },
        enumerable: !0,
        configurable: !0
      }), t.prototype.get = function(n) {
        var r = e(this.__entries__, n), i = this.__entries__[r];
        return i && i[1];
      }, t.prototype.set = function(n, r) {
        var i = e(this.__entries__, n);
        ~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
      }, t.prototype.delete = function(n) {
        var r = this.__entries__, i = e(r, n);
        ~i && r.splice(i, 1);
      }, t.prototype.has = function(n) {
        return !!~e(this.__entries__, n);
      }, t.prototype.clear = function() {
        this.__entries__.splice(0);
      }, t.prototype.forEach = function(n, r) {
        r === void 0 && (r = null);
        for (var i = 0, o = this.__entries__; i < o.length; i++) {
          var s = o[i];
          n.call(r, s[1], s[0]);
        }
      }, t;
    }()
  );
}(), Kr = typeof window < "u" && typeof document < "u" && window.document === document, Vn = function() {
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
}(), Yl = function() {
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Vn) : function(e) {
    return setTimeout(function() {
      return e(Date.now());
    }, 1e3 / 60);
  };
}(), Xl = 2;
function Jl(e, t) {
  var n = !1, r = !1, i = 0;
  function o() {
    n && (n = !1, e()), r && a();
  }
  function s() {
    Yl(o);
  }
  function a() {
    var l = Date.now();
    if (n) {
      if (l - i < Xl)
        return;
      r = !0;
    } else
      n = !0, r = !1, setTimeout(s, t);
    i = l;
  }
  return a;
}
var Zl = 20, Ql = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], ec = typeof MutationObserver < "u", tc = (
  /** @class */
  function() {
    function e() {
      this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Jl(this.refresh.bind(this), Zl);
    }
    return e.prototype.addObserver = function(t) {
      ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
    }, e.prototype.removeObserver = function(t) {
      var n = this.observers_, r = n.indexOf(t);
      ~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
    }, e.prototype.refresh = function() {
      var t = this.updateObservers_();
      t && this.refresh();
    }, e.prototype.updateObservers_ = function() {
      var t = this.observers_.filter(function(n) {
        return n.gatherActive(), n.hasActive();
      });
      return t.forEach(function(n) {
        return n.broadcastActive();
      }), t.length > 0;
    }, e.prototype.connect_ = function() {
      !Kr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), ec ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
        attributes: !0,
        childList: !0,
        characterData: !0,
        subtree: !0
      })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
    }, e.prototype.disconnect_ = function() {
      !Kr || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
    }, e.prototype.onTransitionEnd_ = function(t) {
      var n = t.propertyName, r = n === void 0 ? "" : n, i = Ql.some(function(o) {
        return !!~r.indexOf(o);
      });
      i && this.refresh();
    }, e.getInstance = function() {
      return this.instance_ || (this.instance_ = new e()), this.instance_;
    }, e.instance_ = null, e;
  }()
), ks = function(e, t) {
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
    var i = r[n];
    Object.defineProperty(e, i, {
      value: t[i],
      enumerable: !1,
      writable: !1,
      configurable: !0
    });
  }
  return e;
}, jt = function(e) {
  var t = e && e.ownerDocument && e.ownerDocument.defaultView;
  return t || Vn;
}, Ts = nr(0, 0, 0, 0);
function Hn(e) {
  return parseFloat(e) || 0;
}
function ro(e) {
  for (var t = [], n = 1; n < arguments.length; n++)
    t[n - 1] = arguments[n];
  return t.reduce(function(r, i) {
    var o = e["border-" + i + "-width"];
    return r + Hn(o);
  }, 0);
}
function nc(e) {
  for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
    var o = i[r], s = e["padding-" + o];
    n[o] = Hn(s);
  }
  return n;
}
function rc(e) {
  var t = e.getBBox();
  return nr(0, 0, t.width, t.height);
}
function ic(e) {
  var t = e.clientWidth, n = e.clientHeight;
  if (!t && !n)
    return Ts;
  var r = jt(e).getComputedStyle(e), i = nc(r), o = i.left + i.right, s = i.top + i.bottom, a = Hn(r.width), l = Hn(r.height);
  if (r.boxSizing === "border-box" && (Math.round(a + o) !== t && (a -= ro(r, "left", "right") + o), Math.round(l + s) !== n && (l -= ro(r, "top", "bottom") + s)), !sc(e)) {
    var u = Math.round(a + o) - t, c = Math.round(l + s) - n;
    Math.abs(u) !== 1 && (a -= u), Math.abs(c) !== 1 && (l -= c);
  }
  return nr(i.left, i.top, a, l);
}
var oc = /* @__PURE__ */ function() {
  return typeof SVGGraphicsElement < "u" ? function(e) {
    return e instanceof jt(e).SVGGraphicsElement;
  } : function(e) {
    return e instanceof jt(e).SVGElement && typeof e.getBBox == "function";
  };
}();
function sc(e) {
  return e === jt(e).document.documentElement;
}
function ac(e) {
  return Kr ? oc(e) ? rc(e) : ic(e) : Ts;
}
function lc(e) {
  var t = e.x, n = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
  return ks(s, {
    x: t,
    y: n,
    width: r,
    height: i,
    top: n,
    right: t + r,
    bottom: i + n,
    left: t
  }), s;
}
function nr(e, t, n, r) {
  return { x: e, y: t, width: n, height: r };
}
var cc = (
  /** @class */
  function() {
    function e(t) {
      this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = nr(0, 0, 0, 0), this.target = t;
    }
    return e.prototype.isActive = function() {
      var t = ac(this.target);
      return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
    }, e.prototype.broadcastRect = function() {
      var t = this.contentRect_;
      return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
    }, e;
  }()
), uc = (
  /** @class */
  /* @__PURE__ */ function() {
    function e(t, n) {
      var r = lc(n);
      ks(this, { target: t, contentRect: r });
    }
    return e;
  }()
), dc = (
  /** @class */
  function() {
    function e(t, n, r) {
      if (this.activeObservations_ = [], this.observations_ = new Cs(), typeof t != "function")
        throw new TypeError("The callback provided as parameter 1 is not a function.");
      this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
    }
    return e.prototype.observe = function(t) {
      if (!arguments.length)
        throw new TypeError("1 argument required, but only 0 present.");
      if (!(typeof Element > "u" || !(Element instanceof Object))) {
        if (!(t instanceof jt(t).Element))
          throw new TypeError('parameter 1 is not of type "Element".');
        var n = this.observations_;
        n.has(t) || (n.set(t, new cc(t)), this.controller_.addObserver(this), this.controller_.refresh());
      }
    }, e.prototype.unobserve = function(t) {
      if (!arguments.length)
        throw new TypeError("1 argument required, but only 0 present.");
      if (!(typeof Element > "u" || !(Element instanceof Object))) {
        if (!(t instanceof jt(t).Element))
          throw new TypeError('parameter 1 is not of type "Element".');
        var n = this.observations_;
        n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
      }
    }, e.prototype.disconnect = function() {
      this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
    }, e.prototype.gatherActive = function() {
      var t = this;
      this.clearActive(), this.observations_.forEach(function(n) {
        n.isActive() && t.activeObservations_.push(n);
      });
    }, e.prototype.broadcastActive = function() {
      if (this.hasActive()) {
        var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
          return new uc(r.target, r.broadcastRect());
        });
        this.callback_.call(t, n, t), this.clearActive();
      }
    }, e.prototype.clearActive = function() {
      this.activeObservations_.splice(0);
    }, e.prototype.hasActive = function() {
      return this.activeObservations_.length > 0;
    }, e;
  }()
), Os = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Cs(), As = (
  /** @class */
  /* @__PURE__ */ function() {
    function e(t) {
      if (!(this instanceof e))
        throw new TypeError("Cannot call a class as a function.");
      if (!arguments.length)
        throw new TypeError("1 argument required, but only 0 present.");
      var n = tc.getInstance(), r = new dc(t, n, this);
      Os.set(this, r);
    }
    return e;
  }()
);
[
  "observe",
  "unobserve",
  "disconnect"
].forEach(function(e) {
  As.prototype[e] = function() {
    var t;
    return (t = Os.get(this))[e].apply(t, arguments);
  };
});
var Ps = function() {
  return typeof Vn.ResizeObserver < "u" ? Vn.ResizeObserver : As;
}(), io;
(function(e) {
  e[e.ELEMENT = 1] = "ELEMENT", e[e.FUNCTIONAL_COMPONENT = 2] = "FUNCTIONAL_COMPONENT", e[e.STATEFUL_COMPONENT = 4] = "STATEFUL_COMPONENT", e[e.COMPONENT = 6] = "COMPONENT", e[e.TEXT_CHILDREN = 8] = "TEXT_CHILDREN", e[e.ARRAY_CHILDREN = 16] = "ARRAY_CHILDREN", e[e.SLOTS_CHILDREN = 32] = "SLOTS_CHILDREN", e[e.TELEPORT = 64] = "TELEPORT", e[e.SUSPENSE = 128] = "SUSPENSE", e[e.COMPONENT_SHOULD_KEEP_ALIVE = 256] = "COMPONENT_SHOULD_KEEP_ALIVE", e[e.COMPONENT_KEPT_ALIVE = 512] = "COMPONENT_KEPT_ALIVE";
})(io || (io = {}));
var oo;
(function(e) {
  e[e.TEXT = 1] = "TEXT", e[e.CLASS = 2] = "CLASS", e[e.STYLE = 4] = "STYLE", e[e.PROPS = 8] = "PROPS", e[e.FULL_PROPS = 16] = "FULL_PROPS", e[e.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", e[e.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", e[e.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", e[e.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", e[e.NEED_PATCH = 512] = "NEED_PATCH", e[e.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", e[e.DEV_ROOT_FRAGMENT = 2048] = "DEV_ROOT_FRAGMENT", e[e.HOISTED = -1] = "HOISTED", e[e.BAIL = -2] = "BAIL";
})(oo || (oo = {}));
const vi = (e) => !!(e && e.shapeFlag & 1), gi = (e, t) => !!(e && e.shapeFlag & 6), xs = (e, t) => !!(e && e.shapeFlag & 16), fc = (e, t) => !!(e && e.shapeFlag & 32), Nn = (e) => {
  var t, n;
  if (e)
    for (const r of e) {
      if (vi(r) || gi(r))
        return r;
      if (xs(r, r.children)) {
        const i = Nn(r.children);
        if (i)
          return i;
      } else if (fc(r, r.children)) {
        const i = (n = (t = r.children).default) == null ? void 0 : n.call(t);
        if (i) {
          const o = Nn(i);
          if (o)
            return o;
        }
      } else if (mi(r)) {
        const i = Nn(r);
        if (i)
          return i;
      }
    }
}, pc = (e) => {
  if (!e)
    return !0;
  for (const t of e)
    if (t.children)
      return !1;
  return !0;
}, Ds = (e, t) => {
  if (e && e.length > 0)
    for (let n = 0; n < e.length; n++) {
      const r = e[n];
      if (vi(r) || gi(r)) {
        const o = er(t) ? t(r) : t;
        return e[n] = hs(r, o, !0), !0;
      }
      const i = Ms(r);
      if (i && i.length > 0 && Ds(i, t))
        return !0;
    }
  return !1;
}, Ms = (e) => {
  if (xs(e, e.children))
    return e.children;
  if (mi(e))
    return e;
}, $s = (e) => {
  var t, n;
  if (vi(e))
    return e.el;
  if (gi(e)) {
    if (((t = e.el) == null ? void 0 : t.nodeType) === 1)
      return e.el;
    if ((n = e.component) != null && n.subTree) {
      const r = $s(e.component.subTree);
      if (r)
        return r;
    }
  } else {
    const r = Ms(e);
    return Ls(r);
  }
}, Ls = (e) => {
  if (e && e.length > 0)
    for (const t of e) {
      const n = $s(t);
      if (n)
        return n;
    }
}, so = (e) => {
  if (e)
    return er(e) ? e : () => e;
}, Is = typeof window > "u" ? global : window, mc = Is.requestAnimationFrame, ao = Is.cancelAnimationFrame;
function lo(e) {
  let t = 0;
  const n = (...r) => {
    t && ao(t), t = mc(() => {
      e(...r), t = 0;
    });
  };
  return n.cancel = () => {
    ao(t), t = 0;
  }, n;
}
const yi = () => {
}, hc = () => {
  const { body: e } = document, t = document.documentElement;
  let n;
  try {
    n = (window.top || window.self || window).document.body;
  } catch {
  }
  return {
    height: Math.max(e.scrollHeight, e.offsetHeight, t.clientHeight, t.scrollHeight, t.offsetHeight, (n == null ? void 0 : n.scrollHeight) || 0, (n == null ? void 0 : n.clientHeight) || 0),
    width: Math.max(e.scrollWidth, e.offsetWidth, t.clientWidth, t.scrollWidth, t.offsetWidth, (n == null ? void 0 : n.scrollWidth) || 0, (n == null ? void 0 : n.clientWidth) || 0)
  };
}, bi = (() => {
  try {
    return !(typeof window < "u" && document !== void 0);
  } catch {
    return !0;
  }
})(), gr = bi ? yi : (e, t, n, r = !1) => {
  e.addEventListener(t, n, r);
}, co = bi ? yi : (e, t, n, r = !1) => {
  e.removeEventListener(t, n, r);
}, vc = (e) => {
  const t = document.createElement("div");
  return t.setAttribute("class", `arco-overlay arco-overlay-${e}`), t;
}, gc = (e, t) => {
  var n;
  return bi ? yi() : (n = document.querySelector(e)) != null ? n : void 0;
}, uo = (e, t) => {
  if (hi(e)) {
    const n = e[0] === "#" ? `[id='${e.slice(1)}']` : e;
    return gc(n);
  }
  return e;
};
var Ke = (e, t) => {
  for (const [n, r] of t)
    e[n] = r;
  return e;
};
const yc = pe({
  name: "IconHover",
  props: {
    prefix: {
      type: String
    },
    size: {
      type: String,
      default: "medium"
    },
    disabled: {
      type: Boolean,
      default: !1
    }
  },
  setup() {
    return {
      prefixCls: xe("icon-hover")
    };
  }
});
function bc(e, t, n, r, i, o) {
  return W(), oe("span", {
    class: me([
      e.prefixCls,
      {
        [`${e.prefix}-icon-hover`]: e.prefix,
        [`${e.prefixCls}-size-${e.size}`]: e.size !== "medium",
        [`${e.prefixCls}-disabled`]: e.disabled
      }
    ])
  }, [
    Le(e.$slots, "default")
  ], 2);
}
var Ns = /* @__PURE__ */ Ke(yc, [["render", bc]]);
const wc = pe({
  name: "IconClose",
  props: {
    size: {
      type: [Number, String]
    },
    strokeWidth: {
      type: Number,
      default: 4
    },
    strokeLinecap: {
      type: String,
      default: "butt",
      validator: (e) => ["butt", "round", "square"].includes(e)
    },
    strokeLinejoin: {
      type: String,
      default: "miter",
      validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
    },
    rotate: Number,
    spin: Boolean
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("icon"), r = ie(() => [n, `${n}-close`, { [`${n}-spin`]: e.spin }]), i = ie(() => {
      const s = {};
      return e.size && (s.fontSize = Kt(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
    });
    return {
      cls: r,
      innerStyle: i,
      onClick: (s) => {
        t("click", s);
      }
    };
  }
}), Ec = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Sc = /* @__PURE__ */ G("path", { d: "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142" }, null, -1), _c = [
  Sc
];
function Cc(e, t, n, r, i, o) {
  return W(), oe("svg", {
    viewBox: "0 0 48 48",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg",
    stroke: "currentColor",
    class: me(e.cls),
    style: wt(e.innerStyle),
    "stroke-width": e.strokeWidth,
    "stroke-linecap": e.strokeLinecap,
    "stroke-linejoin": e.strokeLinejoin,
    onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s))
  }, _c, 14, Ec);
}
var yr = /* @__PURE__ */ Ke(wc, [["render", Cc]]);
const Bs = Object.assign(yr, {
  install: (e, t) => {
    var n;
    const r = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
    e.component(r + yr.name, yr);
  }
}), kc = pe({
  name: "IconInfoCircleFill",
  props: {
    size: {
      type: [Number, String]
    },
    strokeWidth: {
      type: Number,
      default: 4
    },
    strokeLinecap: {
      type: String,
      default: "butt",
      validator: (e) => ["butt", "round", "square"].includes(e)
    },
    strokeLinejoin: {
      type: String,
      default: "miter",
      validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
    },
    rotate: Number,
    spin: Boolean
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("icon"), r = ie(() => [n, `${n}-info-circle-fill`, { [`${n}-spin`]: e.spin }]), i = ie(() => {
      const s = {};
      return e.size && (s.fontSize = Kt(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
    });
    return {
      cls: r,
      innerStyle: i,
      onClick: (s) => {
        t("click", s);
      }
    };
  }
}), Tc = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Oc = /* @__PURE__ */ G("path", {
  "fill-rule": "evenodd",
  "clip-rule": "evenodd",
  d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",
  fill: "currentColor",
  stroke: "none"
}, null, -1), Ac = [
  Oc
];
function Pc(e, t, n, r, i, o) {
  return W(), oe("svg", {
    viewBox: "0 0 48 48",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg",
    stroke: "currentColor",
    class: me(e.cls),
    style: wt(e.innerStyle),
    "stroke-width": e.strokeWidth,
    "stroke-linecap": e.strokeLinecap,
    "stroke-linejoin": e.strokeLinejoin,
    onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s))
  }, Ac, 14, Tc);
}
var br = /* @__PURE__ */ Ke(kc, [["render", Pc]]);
const xc = Object.assign(br, {
  install: (e, t) => {
    var n;
    const r = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
    e.component(r + br.name, br);
  }
}), Dc = pe({
  name: "IconCheckCircleFill",
  props: {
    size: {
      type: [Number, String]
    },
    strokeWidth: {
      type: Number,
      default: 4
    },
    strokeLinecap: {
      type: String,
      default: "butt",
      validator: (e) => ["butt", "round", "square"].includes(e)
    },
    strokeLinejoin: {
      type: String,
      default: "miter",
      validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
    },
    rotate: Number,
    spin: Boolean
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("icon"), r = ie(() => [n, `${n}-check-circle-fill`, { [`${n}-spin`]: e.spin }]), i = ie(() => {
      const s = {};
      return e.size && (s.fontSize = Kt(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
    });
    return {
      cls: r,
      innerStyle: i,
      onClick: (s) => {
        t("click", s);
      }
    };
  }
}), Mc = ["stroke-width", "stroke-linecap", "stroke-linejoin"], $c = /* @__PURE__ */ G("path", {
  "fill-rule": "evenodd",
  "clip-rule": "evenodd",
  d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",
  fill: "currentColor",
  stroke: "none"
}, null, -1), Lc = [
  $c
];
function Ic(e, t, n, r, i, o) {
  return W(), oe("svg", {
    viewBox: "0 0 48 48",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg",
    stroke: "currentColor",
    class: me(e.cls),
    style: wt(e.innerStyle),
    "stroke-width": e.strokeWidth,
    "stroke-linecap": e.strokeLinecap,
    "stroke-linejoin": e.strokeLinejoin,
    onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s))
  }, Lc, 14, Mc);
}
var wr = /* @__PURE__ */ Ke(Dc, [["render", Ic]]);
const Nc = Object.assign(wr, {
  install: (e, t) => {
    var n;
    const r = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
    e.component(r + wr.name, wr);
  }
}), Bc = pe({
  name: "IconExclamationCircleFill",
  props: {
    size: {
      type: [Number, String]
    },
    strokeWidth: {
      type: Number,
      default: 4
    },
    strokeLinecap: {
      type: String,
      default: "butt",
      validator: (e) => ["butt", "round", "square"].includes(e)
    },
    strokeLinejoin: {
      type: String,
      default: "miter",
      validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
    },
    rotate: Number,
    spin: Boolean
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("icon"), r = ie(() => [n, `${n}-exclamation-circle-fill`, { [`${n}-spin`]: e.spin }]), i = ie(() => {
      const s = {};
      return e.size && (s.fontSize = Kt(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
    });
    return {
      cls: r,
      innerStyle: i,
      onClick: (s) => {
        t("click", s);
      }
    };
  }
}), Rc = ["stroke-width", "stroke-linecap", "stroke-linejoin"], zc = /* @__PURE__ */ G("path", {
  "fill-rule": "evenodd",
  "clip-rule": "evenodd",
  d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",
  fill: "currentColor",
  stroke: "none"
}, null, -1), Fc = [
  zc
];
function jc(e, t, n, r, i, o) {
  return W(), oe("svg", {
    viewBox: "0 0 48 48",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg",
    stroke: "currentColor",
    class: me(e.cls),
    style: wt(e.innerStyle),
    "stroke-width": e.strokeWidth,
    "stroke-linecap": e.strokeLinecap,
    "stroke-linejoin": e.strokeLinejoin,
    onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s))
  }, Fc, 14, Rc);
}
var Er = /* @__PURE__ */ Ke(Bc, [["render", jc]]);
const Vc = Object.assign(Er, {
  install: (e, t) => {
    var n;
    const r = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
    e.component(r + Er.name, Er);
  }
}), Hc = pe({
  name: "IconCloseCircleFill",
  props: {
    size: {
      type: [Number, String]
    },
    strokeWidth: {
      type: Number,
      default: 4
    },
    strokeLinecap: {
      type: String,
      default: "butt",
      validator: (e) => ["butt", "round", "square"].includes(e)
    },
    strokeLinejoin: {
      type: String,
      default: "miter",
      validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
    },
    rotate: Number,
    spin: Boolean
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("icon"), r = ie(() => [n, `${n}-close-circle-fill`, { [`${n}-spin`]: e.spin }]), i = ie(() => {
      const s = {};
      return e.size && (s.fontSize = Kt(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
    });
    return {
      cls: r,
      innerStyle: i,
      onClick: (s) => {
        t("click", s);
      }
    };
  }
}), Uc = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Wc = /* @__PURE__ */ G("path", {
  "fill-rule": "evenodd",
  "clip-rule": "evenodd",
  d: "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",
  fill: "currentColor",
  stroke: "none"
}, null, -1), qc = [
  Wc
];
function Kc(e, t, n, r, i, o) {
  return W(), oe("svg", {
    viewBox: "0 0 48 48",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg",
    stroke: "currentColor",
    class: me(e.cls),
    style: wt(e.innerStyle),
    "stroke-width": e.strokeWidth,
    "stroke-linecap": e.strokeLinecap,
    "stroke-linejoin": e.strokeLinejoin,
    onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s))
  }, qc, 14, Uc);
}
var Sr = /* @__PURE__ */ Ke(Hc, [["render", Kc]]);
const Gc = Object.assign(Sr, {
  install: (e, t) => {
    var n;
    const r = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
    e.component(r + Sr.name, Sr);
  }
}), Yc = ["info", "success", "warning", "error"], Xc = pe({
  name: "IconLoading",
  props: {
    size: {
      type: [Number, String]
    },
    strokeWidth: {
      type: Number,
      default: 4
    },
    strokeLinecap: {
      type: String,
      default: "butt",
      validator: (e) => ["butt", "round", "square"].includes(e)
    },
    strokeLinejoin: {
      type: String,
      default: "miter",
      validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
    },
    rotate: Number,
    spin: Boolean
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("icon"), r = ie(() => [n, `${n}-loading`, { [`${n}-spin`]: e.spin }]), i = ie(() => {
      const s = {};
      return e.size && (s.fontSize = Kt(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
    });
    return {
      cls: r,
      innerStyle: i,
      onClick: (s) => {
        t("click", s);
      }
    };
  }
}), Jc = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Zc = /* @__PURE__ */ G("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1), Qc = [
  Zc
];
function e0(e, t, n, r, i, o) {
  return W(), oe("svg", {
    viewBox: "0 0 48 48",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg",
    stroke: "currentColor",
    class: me(e.cls),
    style: wt(e.innerStyle),
    "stroke-width": e.strokeWidth,
    "stroke-linecap": e.strokeLinecap,
    "stroke-linejoin": e.strokeLinejoin,
    onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s))
  }, Qc, 14, Jc);
}
var _r = /* @__PURE__ */ Ke(Xc, [["render", e0]]);
const rr = Object.assign(_r, {
  install: (e, t) => {
    var n;
    const r = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
    e.component(r + _r.name, _r);
  }
});
var t0 = Object.defineProperty, fo = Object.getOwnPropertySymbols, n0 = Object.prototype.hasOwnProperty, r0 = Object.prototype.propertyIsEnumerable, po = (e, t, n) => t in e ? t0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, i0 = (e, t) => {
  for (var n in t || (t = {}))
    n0.call(t, n) && po(e, n, t[n]);
  if (fo)
    for (var n of fo(t))
      r0.call(t, n) && po(e, n, t[n]);
  return e;
};
const o0 = (e, t) => {
  const n = i0({}, e);
  for (const r of t)
    r in n && delete n[r];
  return n;
}, s0 = Symbol("ArcoFormItemContext"), a0 = ({
  size: e,
  disabled: t,
  error: n,
  uninject: r
} = {}) => {
  const i = r ? {} : Pt(s0, {}), o = ie(() => {
    var c;
    return (c = e == null ? void 0 : e.value) != null ? c : i.size;
  }), s = ie(() => (t == null ? void 0 : t.value) || i.disabled), a = ie(() => (n == null ? void 0 : n.value) || i.error), l = Wi(i, "feedback"), u = Wi(i, "eventHandlers");
  return {
    formItemCtx: i,
    mergedSize: o,
    mergedDisabled: s,
    mergedError: a,
    feedback: l,
    eventHandlers: u
  };
}, Rs = (e, { defaultValue: t = "medium" } = {}) => {
  const n = Pt(tr, void 0);
  return {
    mergedSize: ie(() => {
      var i, o;
      return (o = (i = e == null ? void 0 : e.value) != null ? i : n == null ? void 0 : n.size) != null ? o : t;
    })
  };
}, zs = Symbol("ArcoButtonGroup"), l0 = pe({
  name: "Button",
  components: {
    IconLoading: rr
  },
  props: {
    type: {
      type: String
    },
    shape: {
      type: String
    },
    status: {
      type: String
    },
    size: {
      type: String
    },
    long: {
      type: Boolean,
      default: !1
    },
    loading: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean
    },
    htmlType: {
      type: String,
      default: "button"
    },
    href: String
  },
  emits: {
    click: (e) => !0
  },
  setup(e, { emit: t }) {
    const { size: n, disabled: r } = Jn(e), i = xe("btn"), o = Pt(zs, void 0), s = ie(() => {
      var y;
      return (y = n.value) != null ? y : o == null ? void 0 : o.size;
    }), a = ie(() => !!(r.value || o != null && o.disabled)), { mergedSize: l, mergedDisabled: u } = a0({
      size: s,
      disabled: a
    }), { mergedSize: c } = Rs(l), p = ie(() => {
      var y, m, g, T, A, B;
      return [
        i,
        `${i}-${(m = (y = e.type) != null ? y : o == null ? void 0 : o.type) != null ? m : "secondary"}`,
        `${i}-shape-${(T = (g = e.shape) != null ? g : o == null ? void 0 : o.shape) != null ? T : "square"}`,
        `${i}-size-${c.value}`,
        `${i}-status-${(B = (A = e.status) != null ? A : o == null ? void 0 : o.status) != null ? B : "normal"}`,
        {
          [`${i}-long`]: e.long,
          [`${i}-loading`]: e.loading,
          [`${i}-disabled`]: u.value,
          [`${i}-link`]: hi(e.href)
        }
      ];
    });
    return {
      prefixCls: i,
      cls: p,
      mergedDisabled: u,
      handleClick: (y) => {
        if (e.disabled || e.loading) {
          y.preventDefault();
          return;
        }
        t("click", y);
      }
    };
  }
}), c0 = ["href"], u0 = ["type", "disabled"];
function d0(e, t, n, r, i, o) {
  const s = Ve("icon-loading");
  return e.href ? (W(), oe("a", {
    key: 0,
    class: me([
      e.cls,
      { [`${e.prefixCls}-only-icon`]: e.$slots.icon && !e.$slots.default }
    ]),
    href: e.mergedDisabled || e.loading ? void 0 : e.href,
    onClick: t[0] || (t[0] = (...a) => e.handleClick && e.handleClick(...a))
  }, [
    e.loading || e.$slots.icon ? (W(), oe("span", {
      key: 0,
      class: me(`${e.prefixCls}-icon`)
    }, [
      e.loading ? (W(), ye(s, {
        key: 0,
        spin: "true"
      })) : Le(e.$slots, "icon", { key: 1 })
    ], 2)) : Pe("v-if", !0),
    Le(e.$slots, "default")
  ], 10, c0)) : (W(), oe("button", {
    key: 1,
    class: me([
      e.cls,
      { [`${e.prefixCls}-only-icon`]: e.$slots.icon && !e.$slots.default }
    ]),
    type: e.htmlType,
    disabled: e.mergedDisabled,
    onClick: t[1] || (t[1] = (...a) => e.handleClick && e.handleClick(...a))
  }, [
    e.loading || e.$slots.icon ? (W(), oe("span", {
      key: 0,
      class: me(`${e.prefixCls}-icon`)
    }, [
      e.loading ? (W(), ye(s, {
        key: 0,
        spin: !0
      })) : Le(e.$slots, "icon", { key: 1 })
    ], 2)) : Pe("v-if", !0),
    Le(e.$slots, "default")
  ], 10, u0));
}
var Cr = /* @__PURE__ */ Ke(l0, [["render", d0]]);
const f0 = pe({
  name: "ButtonGroup",
  props: {
    type: {
      type: String
    },
    status: {
      type: String
    },
    shape: {
      type: String
    },
    size: {
      type: String
    },
    disabled: {
      type: Boolean
    }
  },
  setup(e) {
    const { type: t, size: n, status: r, disabled: i, shape: o } = Jn(e), s = xe("btn-group");
    return vs(zs, di({
      type: t,
      size: n,
      shape: o,
      status: r,
      disabled: i
    })), {
      prefixCls: s
    };
  }
});
function p0(e, t, n, r, i, o) {
  return W(), oe("div", {
    class: me(e.prefixCls)
  }, [
    Le(e.$slots, "default")
  ], 2);
}
var Bn = /* @__PURE__ */ Ke(f0, [["render", p0]]);
const vt = Object.assign(Cr, {
  Group: Bn,
  install: (e, t) => {
    vn(e, t);
    const n = hn(t);
    e.component(n + Cr.name, Cr), e.component(n + Bn.name, Bn);
  }
});
var m0 = Object.defineProperty, mo = Object.getOwnPropertySymbols, h0 = Object.prototype.hasOwnProperty, v0 = Object.prototype.propertyIsEnumerable, ho = (e, t, n) => t in e ? m0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qt = (e, t) => {
  for (var n in t || (t = {}))
    h0.call(t, n) && ho(e, n, t[n]);
  if (mo)
    for (var n of mo(t))
      v0.call(t, n) && ho(e, n, t[n]);
  return e;
};
const g0 = () => {
  const { height: e, width: t } = hc();
  return {
    width: Math.min(t, window.innerWidth),
    height: Math.min(e, window.innerHeight)
  };
}, vo = (e, t) => {
  var n, r;
  const i = e.getBoundingClientRect();
  return {
    top: i.top,
    bottom: i.bottom,
    left: i.left,
    right: i.right,
    scrollTop: i.top - t.top,
    scrollBottom: i.bottom - t.top,
    scrollLeft: i.left - t.left,
    scrollRight: i.right - t.left,
    width: (n = e.offsetWidth) != null ? n : e.clientWidth,
    height: (r = e.offsetHeight) != null ? r : e.clientHeight
  };
}, y0 = (e) => {
  switch (e) {
    case "top":
    case "tl":
    case "tr":
      return "top";
    case "bottom":
    case "bl":
    case "br":
      return "bottom";
    case "left":
    case "lt":
    case "lb":
      return "left";
    case "right":
    case "rt":
    case "rb":
      return "right";
    default:
      return "top";
  }
}, On = (e, t) => {
  switch (t) {
    case "top":
      switch (e) {
        case "bottom":
          return "top";
        case "bl":
          return "tl";
        case "br":
          return "tr";
        default:
          return e;
      }
    case "bottom":
      switch (e) {
        case "top":
          return "bottom";
        case "tl":
          return "bl";
        case "tr":
          return "br";
        default:
          return e;
      }
    case "left":
      switch (e) {
        case "right":
          return "left";
        case "rt":
          return "lt";
        case "rb":
          return "lb";
        default:
          return e;
      }
    case "right":
      switch (e) {
        case "left":
          return "right";
        case "lt":
          return "rt";
        case "lb":
          return "rb";
        default:
          return e;
      }
    default:
      return e;
  }
}, b0 = (e, t, {
  containerRect: n,
  triggerRect: r,
  popupRect: i,
  offset: o,
  translate: s
}) => {
  const a = y0(e), l = g0(), u = {
    top: n.top + t.top,
    bottom: l.height - (n.top + t.top + i.height),
    left: n.left + t.left,
    right: l.width - (n.left + t.left + i.width)
  };
  let c = e;
  if (a === "top" && u.top < 0)
    if (r.top > i.height)
      t.top = -n.top;
    else {
      const p = en("bottom", r, i, {
        offset: o,
        translate: s
      });
      l.height - (n.top + p.top + i.height) > 0 && (c = On(e, "bottom"), t.top = p.top);
    }
  if (a === "bottom" && u.bottom < 0)
    if (l.height - r.bottom > i.height)
      t.top = -n.top + (l.height - i.height);
    else {
      const p = en("top", r, i, {
        offset: o,
        translate: s
      });
      n.top + p.top > 0 && (c = On(e, "top"), t.top = p.top);
    }
  if (a === "left" && u.left < 0)
    if (r.left > i.width)
      t.left = -n.left;
    else {
      const p = en("right", r, i, {
        offset: o,
        translate: s
      });
      l.width - (n.left + p.left + i.width) > 0 && (c = On(e, "right"), t.left = p.left);
    }
  if (a === "right" && u.right < 0)
    if (l.width - r.right > i.width)
      t.left = -n.left + (l.width - i.width);
    else {
      const p = en("left", r, i, {
        offset: o,
        translate: s
      });
      n.left + p.left > 0 && (c = On(e, "left"), t.left = p.left);
    }
  return (a === "top" || a === "bottom") && (u.left < 0 ? t.left = -n.left : u.right < 0 && (t.left = -n.left + (l.width - i.width))), (a === "left" || a === "right") && (u.top < 0 ? t.top = -n.top : u.bottom < 0 && (t.top = -n.top + (l.height - i.height))), {
    popupPosition: t,
    position: c
  };
}, en = (e, t, n, {
  offset: r = 0,
  translate: i = [0, 0]
} = {}) => {
  var o;
  const s = (o = mi(i) ? i : i[e]) != null ? o : [0, 0];
  switch (e) {
    case "top":
      return {
        left: t.scrollLeft + Math.round(t.width / 2) - Math.round(n.width / 2) + s[0],
        top: t.scrollTop - n.height - r + s[1]
      };
    case "tl":
      return {
        left: t.scrollLeft + s[0],
        top: t.scrollTop - n.height - r + s[1]
      };
    case "tr":
      return {
        left: t.scrollRight - n.width + s[0],
        top: t.scrollTop - n.height - r + s[1]
      };
    case "bottom":
      return {
        left: t.scrollLeft + Math.round(t.width / 2) - Math.round(n.width / 2) + s[0],
        top: t.scrollBottom + r + s[1]
      };
    case "bl":
      return {
        left: t.scrollLeft + s[0],
        top: t.scrollBottom + r + s[1]
      };
    case "br":
      return {
        left: t.scrollRight - n.width + s[0],
        top: t.scrollBottom + r + s[1]
      };
    case "left":
      return {
        left: t.scrollLeft - n.width - r + s[0],
        top: t.scrollTop + Math.round(t.height / 2) - Math.round(n.height / 2) + s[1]
      };
    case "lt":
      return {
        left: t.scrollLeft - n.width - r + s[0],
        top: t.scrollTop + s[1]
      };
    case "lb":
      return {
        left: t.scrollLeft - n.width - r + s[0],
        top: t.scrollBottom - n.height + s[1]
      };
    case "right":
      return {
        left: t.scrollRight + r + s[0],
        top: t.scrollTop + Math.round(t.height / 2) - Math.round(n.height / 2) + s[1]
      };
    case "rt":
      return {
        left: t.scrollRight + r + s[0],
        top: t.scrollTop + s[1]
      };
    case "rb":
      return {
        left: t.scrollRight + r + s[0],
        top: t.scrollBottom - n.height + s[1]
      };
    default:
      return {
        left: 0,
        top: 0
      };
  }
}, w0 = (e) => {
  let t = "0";
  ["top", "bottom"].includes(e) ? t = "50%" : ["left", "lt", "lb", "tr", "br"].includes(e) && (t = "100%");
  let n = "0";
  return ["left", "right"].includes(e) ? n = "50%" : ["top", "tl", "tr", "lb", "rb"].includes(e) && (n = "100%"), `${t} ${n}`;
}, E0 = (e, t, n, r, {
  offset: i = 0,
  translate: o = [0, 0],
  customStyle: s = {},
  autoFitPosition: a = !1
} = {}) => {
  let l = e, u = en(e, n, r, {
    offset: i,
    translate: o
  });
  if (a) {
    const p = b0(e, u, {
      containerRect: t,
      popupRect: r,
      triggerRect: n,
      offset: i,
      translate: o
    });
    u = p.popupPosition, l = p.position;
  }
  return {
    style: Qt({
      left: `${u.left}px`,
      top: `${u.top}px`
    }, s),
    position: l
  };
}, S0 = (e, t, n, {
  customStyle: r = {}
}) => {
  if (["top", "tl", "tr", "bottom", "bl", "br"].includes(e)) {
    let o = Math.abs(t.scrollLeft + t.width / 2 - n.scrollLeft);
    return o > n.width - 8 && (t.width > n.width ? o = n.width / 2 : o = n.width - 8), ["top", "tl", "tr"].includes(e) ? Qt({
      left: `${o}px`,
      bottom: "0",
      transform: "translate(-50%,50%) rotate(45deg)"
    }, r) : Qt({
      left: `${o}px`,
      top: "0",
      transform: "translate(-50%,-50%) rotate(45deg)"
    }, r);
  }
  let i = Math.abs(t.scrollTop + t.height / 2 - n.scrollTop);
  return i > n.height - 8 && (t.height > n.height ? i = n.height / 2 : i = n.height - 8), ["left", "lt", "lb"].includes(e) ? Qt({
    top: `${i}px`,
    right: "0",
    transform: "translate(50%,-50%) rotate(45deg)"
  }, r) : Qt({
    top: `${i}px`,
    left: "0",
    transform: "translate(-50%,-50%) rotate(45deg)"
  }, r);
}, _0 = (e) => e.scrollHeight > e.offsetHeight || e.scrollWidth > e.offsetWidth, go = (e) => {
  var t;
  const n = [];
  let r = e;
  for (; r && r !== document.documentElement; )
    _0(r) && n.push(r), r = (t = r.parentElement) != null ? t : void 0;
  return n;
}, Fs = () => {
  const e = {}, t = fe(), n = () => {
    const r = Ls(e.value);
    r !== t.value && (t.value = r);
  };
  return ft(() => n()), Zn(() => n()), {
    children: e,
    firstElement: t
  };
};
var yo = pe({
  name: "ResizeObserver",
  props: {
    watchOnUpdated: Boolean
  },
  emits: [
    "resize"
  ],
  setup(e, { emit: t, slots: n }) {
    const { children: r, firstElement: i } = Fs();
    let o;
    const s = (l) => {
      l && (o = new Ps((u) => {
        const c = u[0];
        t("resize", c);
      }), o.observe(l));
    }, a = () => {
      o && (o.disconnect(), o = null);
    };
    return ze(i, (l) => {
      o && a(), l && s(l);
    }), fn(() => {
      o && a();
    }), () => {
      var l;
      return r.value = (l = n.default) == null ? void 0 : l.call(n), r.value;
    };
  }
});
function C0(e, t) {
  const n = fe(e[t]);
  return Zn(() => {
    const r = e[t];
    n.value !== r && (n.value = r);
  }), n;
}
const bo = Symbol("ArcoTrigger"), k0 = 1e3, T0 = 5e3, O0 = 1;
class A0 {
  constructor() {
    this.popupStack = {
      popup: /* @__PURE__ */ new Set(),
      dialog: /* @__PURE__ */ new Set(),
      message: /* @__PURE__ */ new Set()
    }, this.getNextZIndex = (t) => (t === "message" ? Array.from(this.popupStack.message).pop() || T0 : Array.from(this.popupStack.popup).pop() || k0) + O0, this.add = (t) => {
      const n = this.getNextZIndex(t);
      return this.popupStack[t].add(n), t === "dialog" && this.popupStack.popup.add(n), n;
    }, this.delete = (t, n) => {
      this.popupStack[n].delete(t), n === "dialog" && this.popupStack.popup.delete(t);
    }, this.isLastDialog = (t) => this.popupStack.dialog.size > 1 ? t === Array.from(this.popupStack.dialog).pop() : !0;
  }
}
const kr = new A0();
function js(e, {
  visible: t,
  runOnMounted: n
} = {}) {
  const r = fe(0), i = () => {
    r.value = kr.add(e);
  }, o = () => {
    kr.delete(r.value, e);
  }, s = () => e === "dialog" ? kr.isLastDialog(r.value) : !1;
  return ze(() => t == null ? void 0 : t.value, (a) => {
    a ? i() : o();
  }, {
    immediate: !0
  }), n && (ft(() => {
    i();
  }), fn(() => {
    o();
  })), {
    zIndex: tl(r),
    open: i,
    close: o,
    isLastDialog: s
  };
}
const P0 = ({
  elementRef: e,
  onResize: t
}) => {
  let n;
  return {
    createResizeObserver: () => {
      e.value && (n = new Ps((o) => {
        const s = o[0];
        er(t) && t(s);
      }), n.observe(e.value));
    },
    destroyResizeObserver: () => {
      n && (n.disconnect(), n = null);
    }
  };
};
var x0 = pe({
  name: "ClientOnly",
  setup(e, {
    slots: t
  }) {
    const n = fe(!1);
    return ft(() => n.value = !0), () => {
      var r;
      return n.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
    };
  }
});
const D0 = ({
  popupContainer: e,
  visible: t,
  defaultContainer: n = "body",
  documentContainer: r
}) => {
  const i = fe(e.value), o = fe(), s = () => {
    const a = uo(e.value), l = a ? e.value : n, u = a ?? (r ? document.documentElement : uo(n));
    l !== i.value && (i.value = l), u !== o.value && (o.value = u);
  };
  return ft(() => s()), ze(t, (a) => {
    i.value !== e.value && a && s();
  }), {
    teleportContainer: i,
    containerRef: o
  };
};
var M0 = Object.defineProperty, $0 = Object.defineProperties, L0 = Object.getOwnPropertyDescriptors, wo = Object.getOwnPropertySymbols, I0 = Object.prototype.hasOwnProperty, N0 = Object.prototype.propertyIsEnumerable, Eo = (e, t, n) => t in e ? M0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B0 = (e, t) => {
  for (var n in t || (t = {}))
    I0.call(t, n) && Eo(e, n, t[n]);
  if (wo)
    for (var n of wo(t))
      N0.call(t, n) && Eo(e, n, t[n]);
  return e;
}, R0 = (e, t) => $0(e, L0(t));
const z0 = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout", "onContextmenu"];
var Tr = pe({
  name: "Trigger",
  inheritAttrs: !1,
  props: {
    popupVisible: {
      type: Boolean,
      default: void 0
    },
    defaultPopupVisible: {
      type: Boolean,
      default: !1
    },
    trigger: {
      type: [String, Array],
      default: "hover"
    },
    position: {
      type: String,
      default: "bottom"
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    popupOffset: {
      type: Number,
      default: 0
    },
    popupTranslate: {
      type: [Array, Object]
    },
    showArrow: {
      type: Boolean,
      default: !1
    },
    alignPoint: {
      type: Boolean,
      default: !1
    },
    popupHoverStay: {
      type: Boolean,
      default: !0
    },
    blurToClose: {
      type: Boolean,
      default: !0
    },
    clickToClose: {
      type: Boolean,
      default: !0
    },
    clickOutsideToClose: {
      type: Boolean,
      default: !0
    },
    unmountOnClose: {
      type: Boolean,
      default: !0
    },
    contentClass: {
      type: [String, Array, Object]
    },
    contentStyle: {
      type: Object
    },
    arrowClass: {
      type: [String, Array, Object]
    },
    arrowStyle: {
      type: Object
    },
    popupStyle: {
      type: Object
    },
    animationName: {
      type: String,
      default: "fade-in"
    },
    duration: {
      type: [Number, Object]
    },
    mouseEnterDelay: {
      type: Number,
      default: 100
    },
    mouseLeaveDelay: {
      type: Number,
      default: 100
    },
    focusDelay: {
      type: Number,
      default: 0
    },
    autoFitPopupWidth: {
      type: Boolean,
      default: !1
    },
    autoFitPopupMinWidth: {
      type: Boolean,
      default: !1
    },
    autoFixPosition: {
      type: Boolean,
      default: !0
    },
    popupContainer: {
      type: [String, Object]
    },
    updateAtScroll: {
      type: Boolean,
      default: !1
    },
    autoFitTransformOrigin: {
      type: Boolean,
      default: !1
    },
    hideEmpty: {
      type: Boolean,
      default: !1
    },
    openedClass: {
      type: [String, Array, Object]
    },
    autoFitPosition: {
      type: Boolean,
      default: !0
    },
    renderToBody: {
      type: Boolean,
      default: !0
    },
    preventFocus: {
      type: Boolean,
      default: !1
    },
    scrollToClose: {
      type: Boolean,
      default: !1
    },
    scrollToCloseDistance: {
      type: Number,
      default: 0
    }
  },
  emits: {
    "update:popupVisible": (e) => !0,
    popupVisibleChange: (e) => !0,
    show: () => !0,
    hide: () => !0,
    resize: () => !0
  },
  setup(e, {
    emit: t,
    slots: n,
    attrs: r
  }) {
    const {
      popupContainer: i
    } = Jn(e), o = xe("trigger"), s = ie(() => o0(r, z0)), a = Pt(tr, void 0), l = ie(() => [].concat(e.trigger)), u = /* @__PURE__ */ new Set(), c = Pt(bo, void 0), {
      children: p,
      firstElement: E
    } = Fs(), y = fe(), m = fe(e.defaultPopupVisible), g = fe(e.position), T = fe({}), A = fe({}), B = fe({}), $ = fe(), f = fe({
      top: 0,
      left: 0
    });
    let R = null, v = null;
    const d = ie(() => {
      var D;
      return (D = e.popupVisible) != null ? D : m.value;
    }), {
      teleportContainer: h,
      containerRef: _
    } = D0({
      popupContainer: i,
      visible: d,
      documentContainer: !0
    }), {
      zIndex: x
    } = js("popup", {
      visible: d
    });
    let O = 0, I = !1, P = !1;
    const C = () => {
      O && (window.clearTimeout(O), O = 0);
    }, z = (D) => {
      if (e.alignPoint) {
        const {
          pageX: Y,
          pageY: Oe
        } = D;
        f.value = {
          top: Oe,
          left: Y
        };
      }
    }, k = () => {
      if (!E.value || !y.value || !_.value)
        return;
      const D = _.value.getBoundingClientRect(), Y = e.alignPoint ? {
        top: f.value.top,
        bottom: f.value.top,
        left: f.value.left,
        right: f.value.left,
        scrollTop: f.value.top,
        scrollBottom: f.value.top,
        scrollLeft: f.value.left,
        scrollRight: f.value.left,
        width: 0,
        height: 0
      } : vo(E.value, D), Oe = () => vo(y.value, D), mt = Oe(), {
        style: st,
        position: ht
      } = E0(e.position, D, Y, mt, {
        offset: e.popupOffset,
        translate: e.popupTranslate,
        customStyle: e.popupStyle,
        autoFitPosition: e.autoFitPosition
      });
      e.autoFitTransformOrigin && (A.value = {
        transformOrigin: w0(ht)
      }), e.autoFitPopupMinWidth ? st.minWidth = `${Y.width}px` : e.autoFitPopupWidth && (st.width = `${Y.width}px`), g.value !== ht && (g.value = ht), T.value = st, e.showArrow && Ur(() => {
        B.value = S0(ht, Y, Oe(), {
          customStyle: e.arrowStyle
        });
      });
    }, F = (D, Y) => {
      if (D === d.value && O === 0)
        return;
      const Oe = () => {
        m.value = D, t("update:popupVisible", D), t("popupVisibleChange", D), D && Ur(() => {
          k();
        });
      };
      D || (R = null, v = null), Y ? (C(), D !== d.value && (O = window.setTimeout(Oe, Y))) : Oe();
    }, U = (D) => {
      var Y;
      (Y = r.onClick) == null || Y.call(r, D), !(e.disabled || d.value && !e.clickToClose) && (l.value.includes("click") ? (z(D), F(!d.value)) : l.value.includes("contextMenu") && d.value && F(!1));
    }, Z = (D) => {
      var Y;
      (Y = r.onMouseenter) == null || Y.call(r, D), !(e.disabled || !l.value.includes("hover")) && (z(D), F(!0, e.mouseEnterDelay));
    }, te = (D) => {
      c == null || c.onMouseenter(D), Z(D);
    }, we = (D) => {
      var Y;
      (Y = r.onMouseleave) == null || Y.call(r, D), !(e.disabled || !l.value.includes("hover")) && F(!1, e.mouseLeaveDelay);
    }, ve = (D) => {
      c == null || c.onMouseleave(D), we(D);
    }, ke = (D) => {
      var Y;
      (Y = r.onFocusin) == null || Y.call(r, D), !(e.disabled || !l.value.includes("focus")) && F(!0, e.focusDelay);
    }, Ee = (D) => {
      var Y;
      (Y = r.onFocusout) == null || Y.call(r, D), !(e.disabled || !l.value.includes("focus")) && e.blurToClose && F(!1);
    }, Se = (D) => {
      var Y;
      (Y = r.onContextmenu) == null || Y.call(r, D), !(e.disabled || !l.value.includes("contextMenu") || d.value && !e.clickToClose) && (z(D), F(!d.value), D.preventDefault());
    };
    vs(bo, di({
      onMouseenter: te,
      onMouseleave: ve,
      addChildRef: (D) => {
        u.add(D), c == null || c.addChildRef(D);
      },
      removeChildRef: (D) => {
        u.delete(D), c == null || c.removeChildRef(D);
      }
    }));
    const Te = () => {
      co(document.documentElement, "mousedown", L), I = !1;
    }, Ye = C0(n, "content"), b = ie(() => {
      var D;
      return e.hideEmpty && pc((D = Ye.value) == null ? void 0 : D.call(Ye));
    }), L = (D) => {
      var Y, Oe, mt;
      if (!((Y = E.value) != null && Y.contains(D.target) || (Oe = y.value) != null && Oe.contains(D.target))) {
        for (const st of u)
          if ((mt = st.value) != null && mt.contains(D.target))
            return;
        Te(), F(!1);
      }
    }, N = (D, Y) => {
      const [Oe, mt] = D, {
        scrollTop: st,
        scrollLeft: ht
      } = Y;
      return Math.abs(st - Oe) >= e.scrollToCloseDistance || Math.abs(ht - mt) >= e.scrollToCloseDistance;
    }, K = lo((D) => {
      if (d.value)
        if (e.scrollToClose || a != null && a.scrollToClose) {
          const Y = D.target;
          R || (R = [Y.scrollTop, Y.scrollLeft]), N(R, Y) ? F(!1) : k();
        } else
          k();
    }), H = () => {
      co(window, "scroll", j), P = !1;
    }, j = lo((D) => {
      const Y = D.target.documentElement;
      v || (v = [Y.scrollTop, Y.scrollLeft]), N(v, Y) && (F(!1), H());
    }), ne = () => {
      d.value && k();
    }, ae = () => {
      ne(), t("resize");
    }, _e = (D) => {
      e.preventFocus && D.preventDefault();
    };
    c == null || c.addChildRef(y);
    const ot = ie(() => d.value ? e.openedClass : void 0);
    let he;
    ze(d, (D) => {
      if (e.clickOutsideToClose && (!D && I ? Te() : D && !I && (gr(document.documentElement, "mousedown", L), I = !0)), (e.scrollToClose || a != null && a.scrollToClose) && (gr(window, "scroll", j), P = !0), e.updateAtScroll || a != null && a.updateAtScroll) {
        if (D) {
          he = go(E.value);
          for (const Y of he)
            Y.addEventListener("scroll", K);
        } else if (he) {
          for (const Y of he)
            Y.removeEventListener("scroll", K);
          he = void 0;
        }
      }
      D && (Xe.value = !0);
    }), ze(() => [e.autoFitPopupWidth, e.autoFitPopupMinWidth], () => {
      d.value && k();
    });
    const {
      createResizeObserver: de,
      destroyResizeObserver: _t
    } = P0({
      elementRef: _,
      onResize: ne
    });
    ft(() => {
      if (de(), d.value && (k(), e.clickOutsideToClose && !I && (gr(document.documentElement, "mousedown", L), I = !0), e.updateAtScroll || a != null && a.updateAtScroll)) {
        he = go(E.value);
        for (const D of he)
          D.addEventListener("scroll", K);
      }
    }), Zn(() => {
      d.value && k();
    }), nl(() => {
      F(!1);
    }), fn(() => {
      if (c == null || c.removeChildRef(y), _t(), I && Te(), P && H(), he) {
        for (const D of he)
          D.removeEventListener("scroll", K);
        he = void 0;
      }
    });
    const Xe = fe(d.value), et = fe(!1), Ct = () => {
      et.value = !0;
    }, Mt = () => {
      et.value = !1, d.value && t("show");
    }, $t = () => {
      et.value = !1, d.value || (Xe.value = !1, t("hide"));
    };
    return () => {
      var D, Y;
      return p.value = (Y = (D = n.default) == null ? void 0 : D.call(n)) != null ? Y : [], Ds(p.value, {
        class: ot.value,
        onClick: U,
        onMouseenter: Z,
        onMouseleave: we,
        onFocusin: ke,
        onFocusout: Ee,
        onContextmenu: Se
      }), X(lt, null, [e.autoFixPosition ? X(yo, {
        onResize: ae
      }, {
        default: () => [p.value]
      }) : p.value, X(x0, null, {
        default: () => [X(rl, {
          to: h.value,
          disabled: !e.renderToBody
        }, {
          default: () => [(!e.unmountOnClose || d.value || Xe.value) && !b.value && X(yo, {
            onResize: ne
          }, {
            default: () => [X("div", il({
              ref: y,
              class: [`${o}-popup`, `${o}-position-${g.value}`],
              style: R0(B0({}, T.value), {
                zIndex: x.value,
                pointerEvents: et.value ? "none" : "auto"
              }),
              "trigger-placement": g.value,
              onMouseenter: te,
              onMouseleave: ve,
              onMousedown: _e
            }, s.value), [X(ol, {
              name: e.animationName,
              duration: e.duration,
              appear: !0,
              onBeforeEnter: Ct,
              onAfterEnter: Mt,
              onBeforeLeave: Ct,
              onAfterLeave: $t
            }, {
              default: () => {
                var Oe;
                return [sl(X("div", {
                  class: `${o}-popup-wrapper`,
                  style: A.value
                }, [X("div", {
                  class: [`${o}-content`, e.contentClass],
                  style: e.contentStyle
                }, [(Oe = n.content) == null ? void 0 : Oe.call(n)]), e.showArrow && X("div", {
                  ref: $,
                  class: [`${o}-arrow`, e.arrowClass],
                  style: B.value
                }, null)]), [[al, d.value]])];
              }
            })])]
          })]
        })]
      })]);
    };
  }
});
const F0 = Object.assign(Tr, {
  install: (e, t) => {
    vn(e, t);
    const n = hn(t);
    e.component(n + Tr.name, Tr);
  }
}), j0 = 5;
var V0 = pe({
  name: "DotLoading",
  props: {
    size: {
      type: Number
    }
  },
  setup(e) {
    const t = xe("dot-loading");
    return () => {
      const n = e.size ? {
        width: `${e.size}px`,
        height: `${e.size}px`
      } : {};
      return X("div", {
        class: t,
        style: {
          width: e.size ? `${e.size * 7}px` : void 0,
          height: e.size ? `${e.size}px` : void 0
        }
      }, [Array(j0).fill(1).map((r, i) => X("div", {
        class: `${t}-item`,
        key: i,
        style: n
      }, null))]);
    };
  }
}), Or = pe({
  name: "Spin",
  props: {
    size: {
      type: Number
    },
    loading: Boolean,
    dot: Boolean,
    tip: String,
    hideIcon: {
      type: Boolean,
      default: !1
    }
  },
  setup(e, {
    slots: t
  }) {
    const n = xe("spin"), r = Pt(tr, void 0), i = ie(() => [n, {
      [`${n}-loading`]: e.loading,
      [`${n}-with-tip`]: e.tip && !t.default
    }]), o = () => {
      if (t.icon) {
        const a = Nn(t.icon());
        if (a)
          return hs(a, {
            spin: !0
          });
      }
      return t.element ? t.element() : e.dot ? X(V0, {
        size: e.size
      }, null) : r != null && r.slots.loading ? r.slots.loading() : X(rr, {
        spin: !0,
        size: e.size
      }, null);
    }, s = () => {
      var a, l, u;
      const c = e.size ? {
        fontSize: `${e.size}px`
      } : void 0, p = !!((a = t.tip) != null ? a : e.tip);
      return X(lt, null, [!e.hideIcon && X("div", {
        class: `${n}-icon`,
        style: c
      }, [o()]), p && X("div", {
        class: `${n}-tip`
      }, [(u = (l = t.tip) == null ? void 0 : l.call(t)) != null ? u : e.tip])]);
    };
    return () => X("div", {
      class: i.value
    }, [t.default ? X(lt, null, [t.default(), e.loading && X("div", {
      class: `${n}-mask`
    }, [X("div", {
      class: `${n}-mask-icon`
    }, [s()])])]) : s()]);
  }
});
const wi = Object.assign(Or, {
  install: (e, t) => {
    vn(e, t);
    const n = hn(t);
    e.component(n + Or.name, Or);
  }
}), H0 = pe({
  name: "Popover",
  components: {
    Trigger: F0
  },
  props: {
    popupVisible: {
      type: Boolean,
      default: void 0
    },
    defaultPopupVisible: {
      type: Boolean,
      default: !1
    },
    title: String,
    content: String,
    trigger: {
      type: [String, Array],
      default: "hover"
    },
    position: {
      type: String,
      default: "top"
    },
    contentClass: {
      type: [String, Array, Object]
    },
    contentStyle: {
      type: Object
    },
    arrowClass: {
      type: [String, Array, Object]
    },
    arrowStyle: {
      type: Object
    },
    popupContainer: {
      type: [String, Object]
    }
  },
  emits: {
    "update:popupVisible": (e) => !0,
    popupVisibleChange: (e) => !0
  },
  setup(e, { emit: t }) {
    const n = xe("popover"), r = fe(e.defaultPopupVisible), i = ie(() => {
      var l;
      return (l = e.popupVisible) != null ? l : r.value;
    }), o = (l) => {
      r.value = l, t("update:popupVisible", l), t("popupVisibleChange", l);
    }, s = ie(() => [
      `${n}-popup-content`,
      e.contentClass
    ]), a = ie(() => [
      `${n}-popup-arrow`,
      e.arrowClass
    ]);
    return {
      prefixCls: n,
      computedPopupVisible: i,
      contentCls: s,
      arrowCls: a,
      handlePopupVisibleChange: o
    };
  }
});
function U0(e, t, n, r, i, o) {
  const s = Ve("trigger");
  return W(), ye(s, {
    class: me(e.prefixCls),
    trigger: e.trigger,
    position: e.position,
    "popup-visible": e.computedPopupVisible,
    "popup-offset": 10,
    "content-class": e.contentCls,
    "content-style": e.contentStyle,
    "arrow-class": e.arrowCls,
    "arrow-style": e.arrowStyle,
    "show-arrow": "",
    "popup-container": e.popupContainer,
    "animation-name": "zoom-in-fade-out",
    "auto-fit-transform-origin": "",
    onPopupVisibleChange: e.handlePopupVisibleChange
  }, {
    content: ce(() => [
      G("div", {
        class: me(`${e.prefixCls}-title`)
      }, [
        Le(e.$slots, "title", {}, () => [
          Je(re(e.title), 1)
        ])
      ], 2),
      G("div", {
        class: me(`${e.prefixCls}-content`)
      }, [
        Le(e.$slots, "content", {}, () => [
          Je(re(e.content), 1)
        ])
      ], 2)
    ]),
    default: ce(() => [
      Le(e.$slots, "default")
    ]),
    _: 3
  }, 8, ["class", "trigger", "position", "popup-visible", "content-class", "content-style", "arrow-class", "arrow-style", "popup-container", "onPopupVisibleChange"]);
}
var Ar = /* @__PURE__ */ Ke(H0, [["render", U0]]);
const tn = Object.assign(Ar, {
  install: (e, t) => {
    vn(e, t);
    const n = hn(t);
    e.component(n + Ar.name, Ar);
  }
});
function W0(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
const So = [
  "red",
  "orangered",
  "orange",
  "gold",
  "lime",
  "green",
  "cyan",
  "blue",
  "arcoblue",
  "purple",
  "pinkpurple",
  "magenta",
  "gray"
], q0 = pe({
  name: "Tag",
  components: {
    IconHover: Ns,
    IconClose: Bs,
    IconLoading: rr
  },
  props: {
    color: {
      type: String
    },
    size: {
      type: String
    },
    bordered: {
      type: Boolean,
      default: !1
    },
    visible: {
      type: Boolean,
      default: void 0
    },
    defaultVisible: {
      type: Boolean,
      default: !0
    },
    loading: {
      type: Boolean,
      default: !1
    },
    closable: {
      type: Boolean,
      default: !1
    },
    checkable: {
      type: Boolean,
      default: !1
    },
    checked: {
      type: Boolean,
      default: void 0
    },
    defaultChecked: {
      type: Boolean,
      default: !0
    }
  },
  emits: {
    "update:visible": (e) => !0,
    "update:checked": (e) => !0,
    close: (e) => !0,
    check: (e, t) => !0
  },
  setup(e, { emit: t }) {
    const { size: n } = Jn(e), r = xe("tag"), i = ie(() => e.color && So.includes(e.color)), o = ie(() => e.color && !So.includes(e.color)), s = fe(e.defaultVisible), a = fe(e.defaultChecked), l = ie(() => {
      var T;
      return (T = e.visible) != null ? T : s.value;
    }), u = ie(() => {
      var T;
      return e.checkable ? (T = e.checked) != null ? T : a.value : !0;
    }), { mergedSize: c } = Rs(n), p = ie(() => c.value === "mini" ? "small" : c.value), E = (T) => {
      s.value = !1, t("update:visible", !1), t("close", T);
    }, y = (T) => {
      if (e.checkable) {
        const A = !u.value;
        a.value = A, t("update:checked", A), t("check", A, T);
      }
    }, m = ie(() => [
      r,
      `${r}-size-${p.value}`,
      {
        [`${r}-loading`]: e.loading,
        [`${r}-hide`]: !l.value,
        [`${r}-${e.color}`]: i.value,
        [`${r}-bordered`]: e.bordered,
        [`${r}-checkable`]: e.checkable,
        [`${r}-checked`]: u.value,
        [`${r}-custom-color`]: o.value
      }
    ]), g = ie(() => {
      if (o.value)
        return {
          backgroundColor: e.color
        };
    });
    return {
      prefixCls: r,
      cls: m,
      style: g,
      computedVisible: l,
      computedChecked: u,
      handleClick: y,
      handleClose: E
    };
  }
});
function K0(e, t, n, r, i, o) {
  const s = Ve("icon-close"), a = Ve("icon-hover"), l = Ve("icon-loading");
  return e.computedVisible ? (W(), oe("span", {
    key: 0,
    class: me(e.cls),
    style: wt(e.style),
    onClick: t[0] || (t[0] = (...u) => e.handleClick && e.handleClick(...u))
  }, [
    e.$slots.icon ? (W(), oe("span", {
      key: 0,
      class: me(`${e.prefixCls}-icon`)
    }, [
      Le(e.$slots, "icon")
    ], 2)) : Pe("v-if", !0),
    Le(e.$slots, "default"),
    e.closable ? (W(), ye(a, {
      key: 1,
      role: "button",
      "aria-label": "Close",
      prefix: e.prefixCls,
      class: me(`${e.prefixCls}-close-btn`),
      onClick: ll(e.handleClose, ["stop"])
    }, {
      default: ce(() => [
        Le(e.$slots, "close-icon", {}, () => [
          X(s)
        ])
      ]),
      _: 3
    }, 8, ["prefix", "class", "onClick"])) : Pe("v-if", !0),
    e.loading ? (W(), oe("span", {
      key: 2,
      class: me(`${e.prefixCls}-loading-icon`)
    }, [
      X(l)
    ], 2)) : Pe("v-if", !0)
  ], 6)) : Pe("v-if", !0);
}
var Pr = /* @__PURE__ */ Ke(q0, [["render", K0]]);
const xr = Object.assign(Pr, {
  install: (e, t) => {
    vn(e, t);
    const n = hn(t);
    e.component(n + Pr.name, Pr);
  }
}), G0 = pe({
  name: "Message",
  components: {
    AIconHover: Ns,
    IconInfoCircleFill: xc,
    IconCheckCircleFill: Nc,
    IconExclamationCircleFill: Vc,
    IconCloseCircleFill: Gc,
    IconClose: Bs,
    IconLoading: rr
  },
  props: {
    type: {
      type: String,
      default: "info"
    },
    closable: {
      type: Boolean,
      default: !1
    },
    showIcon: {
      type: Boolean,
      default: !0
    },
    duration: {
      type: Number,
      default: 3e3
    },
    resetOnUpdate: {
      type: Boolean,
      default: !1
    },
    resetOnHover: {
      type: Boolean,
      default: !1
    }
  },
  emits: ["close"],
  setup(e, { emit: t }) {
    const n = xe("message");
    let r = 0;
    const i = () => {
      t("close");
    }, o = () => {
      e.duration > 0 && (r = window.setTimeout(i, e.duration));
    }, s = () => {
      r && (window.clearTimeout(r), r = 0);
    };
    return ft(() => {
      o();
    }), Zn(() => {
      e.resetOnUpdate && (s(), o());
    }), gs(() => {
      s();
    }), {
      handleMouseEnter: () => {
        e.resetOnHover && s();
      },
      handleMouseLeave: () => {
        e.resetOnHover && o();
      },
      prefixCls: n,
      handleClose: i
    };
  }
});
function Y0(e, t, n, r, i, o) {
  const s = Ve("icon-info-circle-fill"), a = Ve("icon-check-circle-fill"), l = Ve("icon-exclamation-circle-fill"), u = Ve("icon-close-circle-fill"), c = Ve("icon-loading"), p = Ve("icon-close"), E = Ve("a-icon-hover");
  return W(), oe("li", {
    role: "alert",
    class: me([
      e.prefixCls,
      `${e.prefixCls}-${e.type}`,
      { [`${e.prefixCls}-closable`]: e.closable }
    ]),
    onMouseenter: t[1] || (t[1] = (...y) => e.handleMouseEnter && e.handleMouseEnter(...y)),
    onMouseleave: t[2] || (t[2] = (...y) => e.handleMouseLeave && e.handleMouseLeave(...y))
  }, [
    e.showIcon && !(e.type === "normal" && !e.$slots.icon) ? (W(), oe("span", {
      key: 0,
      class: me(`${e.prefixCls}-icon`)
    }, [
      Le(e.$slots, "icon", {}, () => [
        e.type === "info" ? (W(), ye(s, { key: 0 })) : e.type === "success" ? (W(), ye(a, { key: 1 })) : e.type === "warning" ? (W(), ye(l, { key: 2 })) : e.type === "error" ? (W(), ye(u, { key: 3 })) : e.type === "loading" ? (W(), ye(c, { key: 4 })) : Pe("v-if", !0)
      ])
    ], 2)) : Pe("v-if", !0),
    G("span", {
      class: me(`${e.prefixCls}-content`)
    }, [
      Le(e.$slots, "default")
    ], 2),
    e.closable ? (W(), oe("span", {
      key: 1,
      class: me(`${e.prefixCls}-close-btn`),
      onClick: t[0] || (t[0] = (...y) => e.handleClose && e.handleClose(...y))
    }, [
      X(E, null, {
        default: ce(() => [
          X(p)
        ]),
        _: 1
      })
    ], 2)) : Pe("v-if", !0)
  ], 34);
}
var X0 = /* @__PURE__ */ Ke(G0, [["render", Y0]]);
function J0(e) {
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ul(e);
}
var Z0 = pe({
  name: "MessageList",
  props: {
    messages: {
      type: Array,
      default: () => []
    },
    position: {
      type: String,
      default: "top"
    }
  },
  emits: ["close", "afterClose"],
  setup(e, t) {
    const n = xe("message-list"), {
      zIndex: r
    } = js("message", {
      runOnMounted: !0
    });
    return () => {
      let i;
      return X(cl, {
        class: [n, `${n}-${e.position}`],
        name: "fade-message",
        tag: "ul",
        style: {
          zIndex: r.value
        },
        onAfterLeave: () => t.emit("afterClose")
      }, J0(i = e.messages.map((o) => {
        const s = {
          default: so(o.content),
          icon: so(o.icon)
        };
        return X(X0, {
          key: o.id,
          type: o.type,
          duration: o.duration,
          closable: o.closable,
          resetOnUpdate: o.resetOnUpdate,
          resetOnHover: o.resetOnHover,
          onClose: () => t.emit("close", o.id)
        }, s);
      })) ? i : {
        default: () => [i]
      });
    };
  }
}), Q0 = Object.defineProperty, eu = Object.defineProperties, tu = Object.getOwnPropertyDescriptors, _o = Object.getOwnPropertySymbols, nu = Object.prototype.hasOwnProperty, ru = Object.prototype.propertyIsEnumerable, Co = (e, t, n) => t in e ? Q0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Un = (e, t) => {
  for (var n in t || (t = {}))
    nu.call(t, n) && Co(e, n, t[n]);
  if (_o)
    for (var n of _o(t))
      ru.call(t, n) && Co(e, n, t[n]);
  return e;
}, Vs = (e, t) => eu(e, tu(t));
class iu {
  constructor(t, n) {
    this.messageCount = 0, this.add = (o) => {
      var s;
      this.messageCount++;
      const a = (s = o.id) != null ? s : `__arco_message_${this.messageCount}`;
      if (this.messageIds.has(a))
        return this.update(a, o);
      const l = di(Un({ id: a }, o));
      return this.messages.value.push(l), this.messageIds.add(a), {
        close: () => this.remove(a)
      };
    }, this.update = (o, s) => {
      for (let a = 0; a < this.messages.value.length; a++)
        if (this.messages.value[a].id === o) {
          const l = !zl(s.duration);
          Object.assign(this.messages.value[a], Vs(Un({}, s), { id: o, resetOnUpdate: l }));
          break;
        }
      return {
        close: () => this.remove(o)
      };
    }, this.remove = (o) => {
      for (let s = 0; s < this.messages.value.length; s++) {
        const a = this.messages.value[s];
        if (a.id === o) {
          er(a.onClose) && a.onClose(o), this.messages.value.splice(s, 1), this.messageIds.delete(o);
          break;
        }
      }
    }, this.clear = () => {
      this.messages.value.splice(0);
    }, this.destroy = () => {
      this.messages.value.length === 0 && this.container && (qi(null, this.container), document.body.removeChild(this.container), this.container = null, zt[this.position] = void 0);
    };
    const { position: r = "top" } = t;
    this.container = vc("message"), this.messageIds = /* @__PURE__ */ new Set(), this.messages = fe([]), this.position = r;
    const i = X(Z0, {
      messages: this.messages.value,
      position: r,
      onClose: this.remove,
      onAfterClose: this.destroy
    });
    (n ?? Ft._context) && (i.appContext = n ?? Ft._context), qi(i, this.container), document.body.appendChild(this.container);
  }
}
const zt = {}, Hs = [...Yc, "loading", "normal"], Rn = Hs.reduce((e, t) => (e[t] = (n, r) => {
  hi(n) && (n = { content: n });
  const i = Un({ type: t }, n), { position: o = "top" } = i;
  return zt[o] || (zt[o] = new iu(i, r)), zt[o].add(i);
}, e), {});
Rn.clear = (e) => {
  var t;
  e ? (t = zt[e]) == null || t.clear() : Object.values(zt).forEach((n) => n == null ? void 0 : n.clear());
};
const Ft = Vs(Un({}, Rn), {
  install: (e) => {
    const t = {
      clear: Rn.clear
    };
    for (const n of Hs)
      t[n] = (r, i = e._context) => Rn[n](r, i);
    e.config.globalProperties.$message = t;
  },
  _context: null
});
function ou(e, t) {
  return t = { exports: {} }, e(t, t.exports), t.exports;
}
var su = ou(function(e) {
  var t = e.exports = function(n, r) {
    if (r || (r = 16), n === void 0 && (n = 128), n <= 0) return "0";
    for (var i = Math.log(Math.pow(2, n)) / Math.log(r), o = 2; i === 1 / 0; o *= 2)
      i = Math.log(Math.pow(2, n / o)) / Math.log(r) * o;
    for (var s = i - Math.floor(i), a = "", o = 0; o < Math.floor(i); o++) {
      var l = Math.floor(Math.random() * r).toString(r);
      a = l + a;
    }
    if (s) {
      var u = Math.pow(r, s), l = Math.floor(Math.random() * u).toString(r);
      a = l + a;
    }
    var c = parseInt(a, r);
    return c !== 1 / 0 && c >= Math.pow(2, n) ? t(n, r) : a;
  };
  t.rack = function(n, r, i) {
    var o = function(a) {
      var l = 0;
      do {
        if (l++ > 10)
          if (i) n += i;
          else throw new Error("too many ID collisions, use more bits");
        var u = t(n, r);
      } while (Object.hasOwnProperty.call(s, u));
      return s[u] = a, u;
    }, s = o.hats = {};
    return o.get = function(a) {
      return o.hats[a];
    }, o.set = function(a, l) {
      return o.hats[a] = l, o;
    }, o.bits = n || 128, o.base = r || 16, o;
  };
});
function ut(e) {
  if (!(this instanceof ut))
    return new ut(e);
  e = e || [128, 36, 1], this._seed = e.length ? su.rack(e[0], e[1], e[2]) : e;
}
ut.prototype.next = function(e) {
  return this._seed(e || !0);
};
ut.prototype.nextPrefixed = function(e, t) {
  var n;
  do
    n = e + this.next(!0);
  while (this.assigned(n));
  return this.claim(n, t), n;
};
ut.prototype.claim = function(e, t) {
  this._seed.set(e, t || !0);
};
ut.prototype.assigned = function(e) {
  return this._seed.get(e) || !1;
};
ut.prototype.unclaim = function(e) {
  delete this._seed.hats[e];
};
ut.prototype.clear = function() {
  var e = this._seed.hats, t;
  for (t in e)
    this.unclaim(t);
};
const au = Object.prototype.toString;
function ko(e) {
  return e === void 0;
}
function lu(e) {
  return au.call(e) === "[object Object]";
}
function Us(e, t, n) {
  const r = e.get("scopeIds", !1) || new ut([32, 36]), i = {}, o = {}, s = new cu(), a = /* @__PURE__ */ new Set(), l = [], u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Map();
  function E(b) {
    return !b.parent || b.parent === b ? b : E(b.parent);
  }
  we("tick", function() {
    for (const b of a)
      te("elementChanged", {
        element: b
      });
    a.clear();
  });
  function y(b, L) {
    if (l.push([L, b]), l.length !== 1)
      return;
    let N;
    for (; N = l[0]; ) {
      const [K, H] = N;
      H.destroyed || K(), l.shift();
    }
    te("tick");
  }
  function m(b) {
    return o[b.type] || s;
  }
  function g(b) {
    const {
      element: L,
      parentScope: N,
      initiator: K = null,
      scope: H = Se({
        element: L,
        parent: N,
        initiator: K
      })
    } = b;
    return y(H, function() {
      H.running || H.start(), F("signal", {
        ...b,
        scope: H
      }), m(L).signal({
        ...b,
        scope: H
      }), H.parent && Z(H.parent);
    }), H;
  }
  function T(b) {
    const { element: L, scope: N, initiator: K = N } = b, H = Se({
      element: L,
      parent: N,
      initiator: K
    });
    return y(H, function() {
      if (H.running || H.start(), $e(L, "bpmn:SequenceFlow")) {
        const j = E(H), ne = L.id;
        let ae = p.get(j.id);
        ko(ae) && p.set(j.id, /* @__PURE__ */ new Map()), ae = p.get(j.id);
        let _e = ae.get(ne);
        if (ko(_e) && (_e = 1), _e > 2)
          return;
        _e++, ae.set(ne, _e);
      }
      F("enter", b), m(L).enter({
        ...b,
        initiator: K,
        scope: H
      }), H.parent && Z(H.parent);
    }), H;
  }
  function A(b) {
    const { element: L, scope: N, initiator: K = N } = b;
    y(N, function() {
      F("exit", b), m(L).exit({
        ...b,
        initiator: K
      }), N.running && N.complete(), k(N, K), N.parent && Z(N.parent);
    });
  }
  function B(b) {
    const { event: L, initiator: N, scope: K } = b, H = d(L), j = K.subscriptions, ne = Tn(
      j,
      (de) => Xi(H, de.event)
    ), ae = ne.filter(
      (de) => !de.event.interrupting
    ), _e = ne.filter(
      (de) => de.event.interrupting
    );
    if (!_e.length)
      return ae.map((de) => de.triggerFn(N)).flat();
    const ot = _e.find((de) => !de.event.boundary) || _e[0], he = Tn(
      j,
      (de) => de.event.persistent || uu(de.event, ot.event)
    );
    return j.forEach((de) => {
      he.includes(de) || de.remove();
    }), [ot.triggerFn(N)].flat().filter((de) => de);
  }
  function $(b, L, N) {
    L = d(L);
    const K = L.element, H = {
      scope: b,
      event: L,
      element: K,
      triggerFn: N,
      remove() {
        f(H);
      }
    };
    return c.add(H), b.subscriptions.add(H), K && U(K), H;
  }
  function f(b) {
    const { scope: L, event: N } = b;
    c.delete(b), L.subscriptions.delete(b), N.element && U(N.element);
  }
  function R(b) {
    return $e(b, "bpmn:StartEvent") || $e(b, "bpmn:IntermediateCatchEvent") || $e(b, "bpmn:ReceiveTask") || fu(b) ? Sl(b).name || b.id : null;
  }
  function v(b) {
    return {
      element: b,
      interrupting: !1,
      boundary: !1,
      iref: b.id,
      type: "none"
    };
  }
  function d(b) {
    if (!b.businessObject)
      return b;
    const L = El(b), N = In(b), K = R(b), H = {
      element: b,
      interrupting: L,
      boundary: N,
      ...K ? { iref: K } : {}
    }, j = Ws(b)[0];
    if (!j)
      return {
        ...H,
        type: du(b) ? "message" : "none"
      };
    if ($e(j, "bpmn:LinkEventDefinition"))
      return {
        ...H,
        type: "link",
        name: j.name
      };
    if ($e(j, "bpmn:SignalEventDefinition"))
      return {
        ...H,
        type: "signal",
        ref: j.signalRef
      };
    if ($e(j, "bpmn:TimerEventDefinition"))
      return {
        ...H,
        type: "timer"
      };
    if ($e(j, "bpmn:ConditionalEventDefinition"))
      return {
        ...H,
        type: "condition"
      };
    if ($e(j, "bpmn:EscalationEventDefinition"))
      return {
        ...H,
        type: "escalation",
        ref: j.escalationRef
      };
    if ($e(j, "bpmn:CancelEventDefinition"))
      return {
        ...H,
        type: "cancel"
      };
    if ($e(j, "bpmn:ErrorEventDefinition"))
      return {
        ...H,
        type: "error",
        ref: j.errorRef
      };
    if ($e(j, "bpmn:MessageEventDefinition"))
      return {
        ...H,
        type: "message",
        ref: j.messageRef
      };
    if ($e(j, "bpmn:CompensateEventDefinition")) {
      let ne = j.activityRef && n.get(j.activityRef.id);
      return ne || (hr(b) && Ji(b.parent) ? ne = b.parent.parent : In(b) ? ne = b.host : ne = b.parent), {
        ...H,
        type: "compensate",
        ref: ne,
        persistent: !0
      };
    }
    throw new Error("unknown event definition", j);
  }
  function h(b, L = !0) {
    const { element: N, parent: K, initiator: H } = b;
    L && F("createScope", {
      element: N,
      scope: K
    });
    const j = new wl(r.next(), N, K, H);
    return K && K.children.push(j), u.add(j), L && te("createScope", {
      scope: j
    }), U(N), K && U(K.element), j;
  }
  function _(b) {
    if (typeof b == "function")
      return b;
    const { event: L, element: N, scope: K } = b, H = b.elements || N && [N], j = L && d(L);
    return (ne) => (!j || Xi(j, ne.event)) && (!H || H.includes(ne.element)) && (!K || K === ne.scope);
  }
  function x(b) {
    const L = b === "function" ? b : _(b);
    return (N) => Array.from(N.subscriptions).some(L);
  }
  function O(b) {
    if (typeof b == "function")
      return b;
    const { element: L, waitsOnElement: N, parent: K, trait: H = Gi.RUNNING, subscribedTo: j } = b, ne = j ? x(j) : () => !0;
    return (ae) => (!L || ae.element === L) && (!K || ae.parent === K) && (!N || ae.getTokensByElement(N) > 0) && ae.hasTrait(H) && ne(ae);
  }
  function I(b) {
    return Tn(c, _(b));
  }
  function P(b) {
    return Yi(c, _(b));
  }
  function C(b) {
    return Tn(u, O(b));
  }
  function z(b) {
    return Yi(u, O(b));
  }
  function k(b, L = null) {
    if (!b.destroyed) {
      b.destroy(L);
      for (const N of b.subscriptions) {
        const K = N.event.traits || Gi.ACTIVE;
        b.hasTrait(K) || f(N);
      }
      if (b.destroyed) {
        for (const N of b.children)
          N.destroyed || k(N, L);
        F("destroyScope", {
          element: b.element,
          scope: b
        }), u.delete(b), te("destroyScope", {
          scope: b
        });
      }
      U(b.element), b.parent && U(b.parent.element);
    }
  }
  function F(b, L) {
    te("trace", {
      ...L,
      action: b
    });
  }
  function U(b) {
    a.add(b), l.length || te("tick");
  }
  function Z(b) {
    te("scopeChanged", {
      scope: b
    });
  }
  function te(b, L = {}) {
    return t.fire(`tokenSimulation.simulator.${b}`, L);
  }
  function we(b, L) {
    t.on("tokenSimulation.simulator." + b, L);
  }
  function ve(b, L) {
    t.off("tokenSimulation.simulator." + b, L);
  }
  function ke(b, L) {
    const N = De(b);
    i[b.id || b] = {
      ...N,
      ...L
    }, U(b);
  }
  function Ee() {
    const b = [];
    return n.forEach((L) => {
      if (!Es(L, ["bpmn:Process", "bpmn:Participant"]))
        return;
      const N = h(
        {
          element: L
        },
        !1
      );
      b.push(N);
      const K = L.children.filter(hr), H = L.children.filter(_l);
      for (const j of K) {
        const ne = {
          ...d(j),
          interrupting: !1
        };
        $(
          N,
          ne,
          (ae) => g({
            element: L,
            startEvent: j,
            initiator: ae
          })
        );
      }
      if (!K.length)
        for (const j of H) {
          const ne = v(j);
          $(
            N,
            ne,
            (ae) => g({
              element: L,
              initiator: ae
            })
          );
        }
    }), b;
  }
  function Se(b) {
    const { element: L } = b, N = h(b), { children: K = [], attachers: H = [] } = L;
    for (const j of K)
      if (Ji(j)) {
        const ne = j.children.filter(
          (ae) => hr(ae) && !Zi(ae)
        );
        for (const ae of ne)
          $(N, ae, (_e) => g({
            element: j,
            parentScope: N,
            startEvent: ae,
            initiator: _e
          }));
      }
    for (const j of H)
      In(j) && !Zi(j) && $(N, j, (ne) => g({
        element: j,
        parentScope: N.parent,
        hostScope: N,
        initiator: ne
      }));
    return N;
  }
  function De(b) {
    return i[b.id || b] || {};
  }
  function Ge(b, L) {
    if (!L.length)
      return;
    const N = {
      type: "all-completed",
      persistent: !1
    }, K = new Set(L), H = (j) => {
      K.delete(j.scope), K.size === 0 && (ve("destroyScope", H), B({
        scope: b,
        event: N
      }));
    };
    return we("destroyScope", H), N;
  }
  function Te(b, L = !0) {
    ke(b, {
      wait: L
    });
  }
  function Ye() {
    for (const b of u)
      k(b);
    for (const b of Ee())
      u.add(b);
    p.clear(), te("tick"), te("reset");
  }
  this.createScope = h, this.destroyScope = k, this.findScope = z, this.findScopes = C, this.findSubscription = P, this.findSubscriptions = I, this.waitAtElement = Te, this.waitForScopes = Ge, this.setConfig = ke, this.getConfig = De, this.signal = g, this.enter = T, this.exit = A, this.subscribe = $, this.trigger = B, this.reset = Ye, this.on = we, this.off = ve, this.registerBehavior = function(b, L) {
    o[b] = L;
  };
}
Us.$inject = ["injector", "eventBus", "elementRegistry"];
function cu() {
  this.signal = function(e) {
    console.log("ignored #exit", e.element);
  }, this.exit = function(e) {
    console.log("ignored #exit", e.element);
  }, this.enter = function(e) {
    console.log("ignored #enter", e.element);
  };
}
function uu(e, t) {
  return e.type === t.type && e.boundary && !t.boundary;
}
function du(e) {
  return $e(e, "bpmn:ReceiveTask") || e.incoming.some((t) => $e(t, "bpmn:MessageFlow"));
}
function fu(e) {
  if (!In(e))
    return !1;
  const t = Ws(e);
  return !t[0] || Es(t[0], ["bpmn:ConditionalEventDefinition", "bpmn:TimerEventDefinition"]);
}
function Ws(e) {
  return e.businessObject.get("eventDefinitions") || [];
}
const pu = 5e3, mu = {
  __depends__: [Cl],
  __init__: [
    [
      "eventBus",
      "simulator",
      function(e, t) {
        e.on(
          ["tokenSimulation.toggleMode", "tokenSimulation.resetSimulation"],
          pu,
          (n) => {
            t.reset();
          }
        );
      }
    ]
  ],
  simulator: ["type", Us]
}, ge = {
  legend: [1, "<fieldset>", "</fieldset>"],
  tr: [2, "<table><tbody>", "</tbody></table>"],
  col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
  _default: [0, "", ""]
};
ge.td = ge.th = [3, "<table><tbody><tr>", "</tr></tbody></table>"];
ge.option = ge.optgroup = [1, '<select multiple="multiple">', "</select>"];
ge.thead = ge.tbody = ge.colgroup = ge.caption = ge.tfoot = [1, "<table>", "</table>"];
ge.polyline = ge.ellipse = ge.polygon = ge.circle = ge.text = ge.line = ge.path = ge.rect = ge.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">', "</svg>"];
function hu(e, t = globalThis.document) {
  var u;
  if (typeof e != "string")
    throw new TypeError("String expected");
  const n = /^<!--(.*?)-->$/s.exec(e);
  if (n)
    return t.createComment(n[1]);
  const r = (u = /<([\w:]+)/.exec(e)) == null ? void 0 : u[1];
  if (!r)
    return t.createTextNode(e);
  if (e = e.trim(), r === "body") {
    const c = t.createElement("html");
    c.innerHTML = e;
    const { lastChild: p } = c;
    return p.remove(), p;
  }
  let [i, o, s] = Object.hasOwn(ge, r) ? ge[r] : ge._default, a = t.createElement("div");
  for (a.innerHTML = o + e + s; i--; )
    a = a.lastChild;
  if (a.firstChild === a.lastChild) {
    const { firstChild: c } = a;
    return c.remove(), c;
  }
  const l = t.createDocumentFragment();
  return l.append(...a.childNodes), l;
}
var vu = hu;
const ct = /* @__PURE__ */ W0(vu);
function gu(e, t) {
  return t.forEach(function(n) {
    n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
      if (r !== "default" && !(r in e)) {
        var i = Object.getOwnPropertyDescriptor(n, r);
        Object.defineProperty(e, r, i.get ? i : {
          enumerable: !0,
          get: function() {
            return n[r];
          }
        });
      }
    });
  }), Object.freeze(e);
}
const yu = Object.prototype.toString;
function Ae(e) {
  return new bt(e);
}
function bt(e) {
  if (!e || !e.nodeType)
    throw new Error("A DOM element reference is required");
  this.el = e, this.list = e.classList;
}
bt.prototype.add = function(e) {
  return this.list.add(e), this;
};
bt.prototype.remove = function(e) {
  return yu.call(e) == "[object RegExp]" ? this.removeMatching(e) : (this.list.remove(e), this);
};
bt.prototype.removeMatching = function(e) {
  const t = this.array();
  for (let n = 0; n < t.length; n++)
    e.test(t[n]) && this.remove(t[n]);
  return this;
};
bt.prototype.toggle = function(e, t) {
  return typeof t < "u" ? t !== this.list.toggle(e, t) && this.list.toggle(e) : this.list.toggle(e), this;
};
bt.prototype.array = function() {
  return Array.from(this.list);
};
bt.prototype.has = bt.prototype.contains = function(e) {
  return this.list.contains(e);
};
function bu(e, t, n) {
  var r = n ? e : e.parentNode;
  return r && typeof r.closest == "function" && r.closest(t) || null;
}
var Wn = {}, qn, Gr, Ei;
function qs() {
  qn = window.addEventListener ? "addEventListener" : "attachEvent", Gr = window.removeEventListener ? "removeEventListener" : "detachEvent", Ei = qn !== "addEventListener" ? "on" : "";
}
var wu = Wn.bind = function(e, t, n, r) {
  return qn || qs(), e[qn](Ei + t, n, r || !1), n;
}, Eu = Wn.unbind = function(e, t, n, r) {
  return Gr || qs(), e[Gr](Ei + t, n, r || !1), n;
}, yt = /* @__PURE__ */ gu({
  __proto__: null,
  bind: wu,
  default: Wn,
  unbind: Eu
}, [Wn]), Ks = ["focus", "blur"];
function Su(e, t, n, r, i) {
  return Ks.indexOf(n) !== -1 && (i = !0), yt.bind(e, n, function(o) {
    var s = o.target || o.srcElement;
    o.delegateTarget = bu(s, t, !0), o.delegateTarget && r.call(e, o);
  }, i);
}
function _u(e, t, n, r) {
  return Ks.indexOf(t) !== -1 && (r = !0), yt.unbind(e, t, n, r);
}
var Cu = {
  bind: Su,
  unbind: _u
};
function An(e, t) {
  return t = t || document, t.querySelector(e);
}
function ku(e, t) {
  return t = t || document, t.querySelectorAll(e);
}
const Tu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"/></svg>', Ou = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"/></svg>', Au = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path fill="currentColor" d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"/></svg>', Pu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"/></svg>', xu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"/></svg>', Du = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"/></svg>', Mu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"/></svg>', $u = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path fill="currentColor" d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"/></svg>', Lu = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" class="arco-icon arco-icon-empty" stroke-width="4" stroke-linecap="butt" stroke-linejoin="miter"><path d="M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"></path></svg>';
function pt(e) {
  return function(n = "") {
    return `<span class="bts-icon ${n}">${e}</span>`;
  };
}
const To = pt(Tu), Iu = pt(Lu), Oo = pt(Ou), Gs = pt(Au), Nu = pt(Pu), Bu = pt(xu), Ru = pt(Du), zu = pt(Mu), Ao = pt($u), Fu = Bu(), ju = Nu(), Po = 1500;
class Si {
  constructor(t, n, r, i, o) {
    q(this, "_eventBus");
    q(this, "_tokenSimulationPalette");
    q(this, "_notifications");
    q(this, "_translate");
    q(this, "canvasParent");
    q(this, "_paletteEntry");
    q(this, "isActive");
    q(this, "isPaused");
    q(this, "playMarkup");
    q(this, "pauseMarkup");
    this._eventBus = t, this._tokenSimulationPalette = n, this._notifications = r, this._translate = o, this.canvasParent = i.getContainer().parentNode, this.isActive = !1, this.isPaused = !0, this.playMarkup = () => `${Fu}<span>${o("Play Simulation")}</span>`, this.pauseMarkup = () => `${ju}<span>${o("Pause Simulation")}</span>`, this._init(), t.on(Qn, Po, (a) => {
      this.activate(), this.unpause();
    }), t.on([mn, qt], () => {
      this.deactivate(), this.pause();
    }), t.on(Ss, Po, (a) => {
      this.unpause();
    });
    const s = this;
    t.on("i18n.changed", function() {
      s._updateEntry();
    });
  }
  _init() {
    const t = this._translate("Play/Pause Simulation");
    this._paletteEntry = ct(
      `<div class="bts-entry disabled" title="${t}">${this.playMarkup()}</div>`
    ), yt.bind(this._paletteEntry, "click", this.toggle.bind(this)), this._tokenSimulationPalette.addEntry(this._paletteEntry, 1);
  }
  _updateEntry() {
    this._paletteEntry && (this._paletteEntry.innerHTML = this.isPaused ? this.playMarkup() : this.pauseMarkup());
  }
  pause() {
    this.isActive && (Ae(this._paletteEntry).remove("active"), Ae(this.canvasParent).add("paused"), this._paletteEntry.innerHTML = this.playMarkup(), this._eventBus.fire(kl), this._notifications.showNotification({
      text: "Pause Simulation"
    }), this.isPaused = !0);
  }
  unpause() {
    !this.isActive || !this.isPaused || (Ae(this._paletteEntry).add("active"), Ae(this.canvasParent).remove("paused"), this._paletteEntry.innerHTML = this.pauseMarkup(), this._eventBus.fire(Tl), this._notifications.showNotification({
      text: "Play Simulation"
    }), this.isPaused = !1);
  }
  toggle() {
    this.isPaused ? this.unpause() : this.pause();
  }
  activate() {
    this.isActive = !0, Ae(this._paletteEntry).remove("disabled");
  }
  deactivate() {
    this.isActive = !1, Ae(this._paletteEntry).remove("active"), Ae(this._paletteEntry).add("disabled");
  }
}
q(Si, "$inject");
Si.$inject = [
  "eventBus",
  "tokenSimulationPalette",
  "notifications",
  "canvas",
  "translate"
];
const Vu = 2e3, Hu = Gs();
class _i {
  constructor(t, n, r, i) {
    q(this, "_eventBus");
    q(this, "_canvas");
    q(this, "_scopeFilter");
    q(this, "_translate");
    q(this, "container");
    this._eventBus = t, this._canvas = n, this._scopeFilter = r, this._translate = i, this._init(), t.on([qt, mn], (o) => {
      this.clear();
    });
  }
  _init() {
    this.container = ct('<div class="bts-notifications"></div>'), this._canvas.getContainer().appendChild(this.container);
  }
  clear() {
    for (; this.container.children.length; )
      this.container.children[0].remove();
  }
  showNotification(t) {
    const n = this._translate, {
      text: r,
      type: i = "info",
      icon: o = Hu,
      scope: s,
      ttl: a = Vu
    } = t;
    if (s && !this._scopeFilter.isShown(s))
      return;
    const l = o.startsWith("<") ? o : `<i class="${o}"></i>`, u = s && s.colors, c = u ? `style="color: ${u.auxiliary}; background: ${u.primary}"` : "", p = n(r), E = ct(`
    <div class="bts-notification ${i}">
      <span class="bts-icon">${l}</span>
      <span class="bts-text" title="${p}">${p}</span>
      ${s ? `<span class="bts-scope" ${c}>${s.id}</span>` : ""}
    </div>
  `);
    for (this.container.appendChild(E); this.container.children.length > 4; )
      this.container.children[0].remove();
    setTimeout(function() {
      E.remove();
    }, a);
  }
}
q(_i, "$inject");
_i.$inject = ["eventBus", "canvas", "scopeFilter", "translate"];
const ir = {
  __depends__: [_s],
  notifications: ["type", _i]
}, Uu = {
  __depends__: [ir],
  __init__: ["pauseSimulation"],
  pauseSimulation: ["type", Si]
};
class Ci {
  constructor(t, n, r, i) {
    q(this, "_eventBus");
    q(this, "_tokenSimulationPalette");
    q(this, "_notifications");
    q(this, "_translate");
    q(this, "_paletteEntry");
    q(this, "_active");
    this._eventBus = t, this._tokenSimulationPalette = n, this._notifications = r, this._translate = i, this._init(), t.on(Qn, () => {
      Ae(this._paletteEntry).remove("disabled");
    }), t.on(qt, (s) => {
      this._active = s.active, this._active || this.resetSimulation();
    });
    const o = this;
    t.on("i18n.changed", function() {
      o._updateEntry();
    });
  }
  _updateEntry() {
    const t = this._translate("Reset Simulation");
    if (this._paletteEntry) {
      const n = this._paletteEntry.querySelector(".bts-entry .bts-entry-text");
      n && (n.innerHTML = t);
    }
  }
  _init() {
    const t = this._translate("Reset Simulation");
    this._paletteEntry = ct(`
    <div class="bts-entry disabled" title="${t}">
      ${Ru()}
      <span class="bts-entry-text">${t}</span>
    </div>
  `), yt.bind(this._paletteEntry, "click", () => {
      this.resetSimulation(), this._notifications.showNotification({
        text: "Reset Simulation",
        type: "info"
      });
    }), this._tokenSimulationPalette.addEntry(this._paletteEntry, 2);
  }
  resetSimulation() {
    Ae(this._paletteEntry).add("disabled"), this._eventBus.fire(mn);
  }
}
q(Ci, "$inject");
Ci.$inject = ["eventBus", "tokenSimulationPalette", "notifications", "translate"];
const Wu = {
  __depends__: [ir],
  __init__: ["resetSimulation"],
  resetSimulation: ["type", Ci]
};
var Hr;
let Ys = (Hr = class {
  constructor(t, n, r) {
    q(this, "_elementRegistry");
    q(this, "_elementColors");
    this._elementRegistry = n, this._elementColors = r;
  }
  _setNeutralColors() {
  }
}, q(Hr, "$inject"), Hr);
Ys.$inject = ["eventBus", "elementRegistry", "elementColors"];
const qu = {
  __depends__: [Pl],
  __init__: ["neutralElementColors"],
  neutralElementColors: ["type", Ys]
}, Ku = -15, Gu = 15;
class ki {
  constructor(t, n, r) {
    q(this, "_overlays");
    q(this, "_translate");
    this._overlays = t, this._translate = r, n.on([mn, Qn, qt], () => {
      this.clear();
    });
  }
  addElementNotification(t, n) {
    const r = {
      top: Ku,
      right: Gu
    }, { type: i, icon: o, text: s, scope: a = {} } = n, l = a.colors, u = l ? `style="color: ${l.auxiliary}; background: ${l.primary}"` : "", c = this._translate(s), p = ct(`
    <div class="bts-element-notification ${i || ""}" ${u}>
      ${o || ""}
      <span class="bts-text">${c}</span>
    </div>
  `);
    this._overlays.add(t, "bts-element-notification", {
      position: r,
      html: p,
      show: {
        minZoom: 0.5
      }
    });
  }
  removeElementNotification(t) {
    this._overlays.remove({ element: t });
  }
  clear() {
    this._overlays.remove({ type: "bts-element-notification" });
  }
}
q(ki, "$inject");
ki.$inject = ["overlays", "eventBus", "translate"];
const Yu = {
  elementNotifications: ["type", ki]
}, Xu = {
  __depends__: [Yu, ir],
  __init__: ["elementSupport"],
  elementSupport: ["type", xl]
}, Ju = {
  copy: "fbpmn-icon-copy-service-task",
  sc: "fbpmn-icon-sc-service-task",
  dmn: "fbpmn-icon-dmn-service-task",
  mq: "fbpmn-icon-mq-service-task",
  rest: "fbpmn-icon-rest-service-task",
  http: "fbpmn-icon-http-service-task",
  mail: "fbpmn-icon-mail-service-task",
  camel: "fbpmn-icon-camel-service-task",
  shell: "ibpmn-icon-shell-service-task"
}, Zu = {
  copy: "Copy Service Task",
  sc: "Sc Service Task",
  dmn: "Dmn Service Task",
  mq: "Mq Service Task",
  rest: "Rest Service Task",
  http: "Http Service Task",
  mail: "Mail Service Task",
  camel: "Camel Service Task",
  shell: "Shell Service Task"
};
function or(e, t) {
  if (!e)
    return [];
  const n = e.get("extensionElements");
  if (!n)
    return [];
  const r = n.get("values");
  return !r || !r.length ? [] : t ? r.filter((i) => Q(i, t)) : r;
}
function Xs(e, t) {
  return or(e, `flowable:${t}`);
}
const Qu = Gs(), ed = Iu("a-lager-icon");
function Dr(e) {
  const t = e && e.businessObject.name;
  return t && Dl(t);
}
function Mr(e, t) {
  const n = Yr(e);
  return n === "none" ? "bpmn-icon-intermediate-event-none" : `bpmn-icon-intermediate-event-${t}-${n}`;
}
function Yr(e) {
  const t = pn(e);
  if (Xs(
    t,
    "VariableListenerEventDefinition"
  ).length)
    return "multiple";
  if (t.get("eventDefinitions").length === 0)
    return "none";
  const r = t.eventDefinitions[0];
  return Q(r, "bpmn:MessageEventDefinition") ? "message" : Q(r, "bpmn:TimerEventDefinition") ? "timer" : Q(r, "bpmn:SignalEventDefinition") ? "signal" : Q(r, "bpmn:ErrorEventDefinition") ? "error" : Q(r, "bpmn:EscalationEventDefinition") ? "escalation" : Q(r, "bpmn:CompensateEventDefinition") ? "compensation" : Q(r, "bpmn:ConditionalEventDefinition") ? "condition" : Q(r, "bpmn:LinkEventDefinition") ? "link" : Q(r, "bpmn:CancelEventDefinition") ? "cancel" : Q(r, "bpmn:TerminateEventDefinition") ? "terminate" : "none";
}
class Ti {
  constructor(t, n, r, i, o, s, a) {
    q(this, "_notifications");
    q(this, "_tokenSimulationPalette");
    q(this, "_canvas");
    q(this, "_scopeFilter");
    q(this, "_translate");
    q(this, "_container");
    q(this, "_placeholder");
    q(this, "_content");
    q(this, "_close");
    q(this, "_icon");
    q(this, "_emptyMarkup");
    q(this, "_emptyMarkupInner");
    q(this, "_showMarkup");
    q(this, "_hideMarkup");
    q(this, "_paletteEntry");
    this._notifications = n, this._tokenSimulationPalette = r, this._canvas = i, this._scopeFilter = o, this._translate = a, this._emptyMarkupInner = () => `${ed}<span>${a("No Entries")}</span>`, this._emptyMarkup = () => `<p class="bts-entry placeholder">${this._emptyMarkupInner()}</span></p>`, this._showMarkup = () => `${To()}<span>${a("Show Simulation Log")}</span>`, this._hideMarkup = () => `${To()}<span>${a("Hide Simulation Log")}</span>`, this._init(), t.on(Ol, (u) => {
      ku(".bts-entry[data-scope-id]", this._container).forEach((p) => {
        const E = p.dataset.scopeId;
        Ae(p).toggle("inactive", !this._scopeFilter.isShown(E));
      });
    }), t.on(Al, (u) => {
      const { scope: c } = u, { element: p } = c, E = c.completed;
      if (!["bpmn:Process", "bpmn:Participant", "bpmn:SubProcess"].includes(p.type))
        return;
      const g = `${Q(p, "bpmn:SubProcess") ? Dr(p) || "SubProcess" : "Process"} ${E ? "finished" : "canceled"}`;
      this.log({
        text: g,
        icon: E ? Oo() : zu(),
        scope: c
      });
    }), t.on(Qn, (u) => {
      const { scope: c } = u, { element: p } = c;
      if (!["bpmn:Process", "bpmn:Participant", "bpmn:SubProcess"].includes(p.type))
        return;
      const m = `${Q(p, "bpmn:SubProcess") ? Dr(p) || "SubProcess" : "Process"} started`;
      this.log({
        text: m,
        icon: Oo(),
        scope: c
      });
    }), t.on(Ss, (u) => {
      const { action: c, scope: p, element: E } = u;
      if (c !== "exit")
        return;
      const y = p.parent, m = Dr(E);
      if (Q(E, "bpmn:ServiceTask")) {
        const g = E.businessObject.type;
        return this.log({
          text: m || g && Zu[g] || "Service task",
          icon: g && Ju[g] || "bpmn-icon-service",
          scope: y
        });
      }
      if (Q(E, "bpmn:UserTask"))
        return this.log({
          text: m || "User task",
          icon: "bpmn-icon-user",
          scope: y
        });
      if (Q(E, "bpmn:CallActivity"))
        return this.log({
          text: m || "Call Activity",
          icon: "bpmn-icon-call-activity",
          scope: y
        });
      if (Q(E, "bpmn:ScriptTask"))
        return this.log({
          text: m || "Script task",
          icon: "bpmn-icon-script",
          scope: y
        });
      if (Q(E, "bpmn:BusinessRuleTask"))
        return this.log({
          text: m || "Business Rule task",
          icon: "bpmn-icon-business-rule",
          scope: y
        });
      if (Q(E, "bpmn:ManualTask"))
        return this.log({
          text: m || "Manual task",
          icon: "bpmn-icon-manual-task",
          scope: y
        });
      if (Q(E, "bpmn:ReceiveTask"))
        return this.log({
          text: m || "Receive task",
          icon: "bpmn-icon-receive",
          scope: y
        });
      if (Q(E, "bpmn:SendTask"))
        return this.log({
          text: m || "Send task",
          icon: "bpmn-icon-send",
          scope: y
        });
      if (Q(E, "bpmn:Task"))
        return this.log({
          text: m || "Task",
          icon: "bpmn-icon-task",
          scope: y
        });
      if (Q(E, "bpmn:ExclusiveGateway"))
        return this.log({
          text: m || "Exclusive gateway",
          icon: "bpmn-icon-gateway-xor",
          scope: y
        });
      if (Q(E, "bpmn:ParallelGateway"))
        return this.log({
          text: m || "Parallel gateway",
          icon: "bpmn-icon-gateway-parallel",
          scope: y
        });
      if (Q(E, "bpmn:InclusiveGateway"))
        return this.log({
          text: m || "Inclusive gateway",
          icon: "bpmn-icon-gateway-or",
          scope: y
        });
      if (Q(E, "bpmn:StartEvent"))
        return this.log({
          text: m || "Start event",
          icon: `bpmn-icon-start-event-${Yr(E)}`,
          scope: y
        });
      if (Q(E, "bpmn:IntermediateCatchEvent"))
        return this.log({
          text: m || "Intermediate event",
          icon: Mr(E, "catch"),
          scope: y
        });
      if (Q(E, "bpmn:IntermediateThrowEvent"))
        return this.log({
          text: m || "Intermediate event",
          icon: Mr(E, "throw"),
          scope: y
        });
      if (Q(E, "bpmn:BoundaryEvent"))
        return this.log({
          text: m || "Boundary event",
          icon: Mr(E, "catch"),
          scope: y
        });
      if (Q(E, "bpmn:EndEvent"))
        return this.log({
          text: m || "End event",
          icon: `bpmn-icon-end-event-${Yr(E)}`,
          scope: y
        });
    }), t.on(mn, () => {
      this.clear(), this.toggle(!0);
    }), t.on(qt, ({ active: u }) => {
      this.clear(), this.toggle(u);
    });
    const l = this;
    t.on("i18n.changed", function() {
      l._updateEntry();
    });
  }
  _updateEntry() {
    const t = this.isShown();
    this._paletteEntry && (this._paletteEntry.innerHTML = t ? this._hideMarkup() : this._showMarkup()), t && this._updateContent();
  }
  _updateContent() {
    const t = this._translate, n = `${t("Simulation Log")}
        <button class="bts-close" aria-label="Close">
          ${Ao()}
        </button>`, r = this._container.querySelector(".bts-log .bts-header");
    r && (r.innerHTML = n, this._close = An(".bts-close", this._container), yt.bind(this._close, "click", () => {
      this.toggle(!1);
    })), this._placeholder && (this._placeholder.innerHTML = this._emptyMarkupInner());
  }
  _init() {
    const t = this._translate;
    this._container = ct(`
    <div class="bts-log djs-scrollable hidden">
      <div class="bts-header">
        ${t("Simulation Log")}
        <button class="bts-close" aria-label="Close">
          ${Ao()}
        </button>
      </div>
      <div class="bts-content">
        ${this._emptyMarkup}
      </div>
    </div>
  `), this._placeholder = An(".bts-placeholder", this._container), this._content = An(".bts-content", this._container), yt.bind(this._content, "mousedown", (r) => {
      r.stopPropagation();
    }), this._close = An(".bts-close", this._container), yt.bind(this._close, "click", () => {
      this.toggle(!1);
    }), this._canvas.getContainer().appendChild(this._container);
    const n = t("Toggle Simulation Log");
    this._paletteEntry = ct(`
    <div class="bts-entry" title="${n}">${this._showMarkup}</div>
  `), yt.bind(this._paletteEntry, "click", () => {
      this.toggle();
    }), this._tokenSimulationPalette.addEntry(this._paletteEntry, 3);
  }
  log(t) {
    const n = this._translate, { text: r, type: i = "info", icon: o = Qu, scope: s } = t, a = this._content;
    this._placeholder && Ae(this._placeholder).add("hidden"), this.isShown() || this._notifications.showNotification(t);
    const l = o.startsWith("<") ? o : `<i class="${o}"></i>`, u = s && s.colors, c = u ? `style="background: ${u.primary}; color: ${u.auxiliary}"` : "", p = n(r), E = ct(`
    <p class="bts-entry ${i} ${s && this._scopeFilter.isShown(s) ? "" : "inactive"}" ${s ? `data-scope-id="${s.id}"` : ""}>
      <span class="bts-icon">${l}</span>
      <span class="bts-text" title="${p}">${p}</span>
      ${s ? `<span class="bts-scope" data-scope-id="${s.id}" ${c}>${s.id}</span>` : ""}
    </p>
  `);
    Cu.bind(E, ".bts-scope[data-scope-id]", "click", (m) => {
      this._scopeFilter.toggle(s);
    });
    const y = Math.abs(a.clientHeight + a.scrollTop - a.scrollHeight) < 2;
    a.appendChild(E), y && (a.scrollTop = a.scrollHeight);
  }
  isShown() {
    const t = this._container;
    return !Ae(t).has("hidden");
  }
  toggle(t = !this.isShown()) {
    const n = this._container;
    t ? (Ae(n).remove("hidden"), this._paletteEntry.innerHTML = this._hideMarkup()) : (Ae(n).add("hidden"), this._paletteEntry.innerHTML = this._showMarkup()), this._updateContent();
  }
  clear() {
    if (this._content) {
      for (; this._content.firstChild; )
        this._content.removeChild(this._content.firstChild);
      this._placeholder = ct(this._emptyMarkup()), this._content.appendChild(this._placeholder);
    }
  }
}
q(Ti, "$inject");
Ti.$inject = [
  "eventBus",
  "notifications",
  "tokenSimulationPalette",
  "canvas",
  "scopeFilter",
  "simulator",
  "translate"
];
const td = {
  __depends__: [ir, _s],
  __init__: ["log"],
  log: ["type", Ti]
}, nd = {
  __depends__: [
    dl,
    fl,
    pl,
    ml,
    hl,
    Xu,
    Uu,
    Wu,
    vl,
    // SetAnimationSpeedModule,
    gl,
    qu,
    yl,
    bl,
    mu,
    td
  ]
};
class Oi {
  constructor(t, n) {
    q(this, "_active");
    q(this, "_eventBus");
    q(this, "_canvas");
    q(this, "_canvasParent");
    this._eventBus = t, this._canvas = n, this._active = !1, t.on("import.parse.start", () => {
      this._active && (this.toggleMode(!1), t.once("import.done", () => {
        this.toggleMode(!0);
      }));
    }), t.on("diagram.init", () => {
      this._canvasParent = this._canvas.getContainer().parentNode;
    });
  }
  toggleMode(t = !this._active) {
    t !== this._active && (t ? Ae(this._canvasParent).add("simulation") : Ae(this._canvasParent).remove("simulation"), this._eventBus.fire(qt, {
      active: t
    }), this._active = t);
  }
}
q(Oi, "$inject");
Oi.$inject = ["eventBus", "canvas"];
const rd = {
  __init__: ["toggleMode"],
  toggleMode: ["type", Oi]
}, id = {
  __depends__: [nd, rd]
};
function od(e, t) {
  if (e.ownerDocument !== t.ownerDocument)
    try {
      return t.ownerDocument.importNode(e, !0);
    } catch {
    }
  return e;
}
function sd(e, t) {
  return t.appendChild(od(e, t));
}
function xo(e, t) {
  return sd(t, e), e;
}
var Xr = 2, Js = {
  "alignment-baseline": 1,
  "baseline-shift": 1,
  clip: 1,
  "clip-path": 1,
  "clip-rule": 1,
  color: 1,
  "color-interpolation": 1,
  "color-interpolation-filters": 1,
  "color-profile": 1,
  "color-rendering": 1,
  cursor: 1,
  direction: 1,
  display: 1,
  "dominant-baseline": 1,
  "enable-background": 1,
  fill: 1,
  "fill-opacity": 1,
  "fill-rule": 1,
  filter: 1,
  "flood-color": 1,
  "flood-opacity": 1,
  font: 1,
  "font-family": 1,
  "font-size": Xr,
  "font-size-adjust": 1,
  "font-stretch": 1,
  "font-style": 1,
  "font-variant": 1,
  "font-weight": 1,
  "glyph-orientation-horizontal": 1,
  "glyph-orientation-vertical": 1,
  "image-rendering": 1,
  kerning: 1,
  "letter-spacing": 1,
  "lighting-color": 1,
  marker: 1,
  "marker-end": 1,
  "marker-mid": 1,
  "marker-start": 1,
  mask: 1,
  opacity: 1,
  overflow: 1,
  "pointer-events": 1,
  "shape-rendering": 1,
  "stop-color": 1,
  "stop-opacity": 1,
  stroke: 1,
  "stroke-dasharray": 1,
  "stroke-dashoffset": 1,
  "stroke-linecap": 1,
  "stroke-linejoin": 1,
  "stroke-miterlimit": 1,
  "stroke-opacity": 1,
  "stroke-width": Xr,
  "text-anchor": 1,
  "text-decoration": 1,
  "text-rendering": 1,
  "unicode-bidi": 1,
  visibility: 1,
  "word-spacing": 1,
  "writing-mode": 1
};
function ad(e, t) {
  return Js[t] ? e.style[t] : e.getAttributeNS(null, t);
}
function ld(e, t, n) {
  var r = t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), i = Js[r];
  i ? (i === Xr && typeof n == "number" && (n = String(n) + "px"), e.style[r] = n) : e.setAttributeNS(null, t, n);
}
function cd(e, t) {
  var n = Object.keys(t), r, i;
  for (r = 0, i; i = n[r]; r++)
    ld(e, i, t[i]);
}
function ud(e, t, n) {
  return typeof t == "string" ? ad(e, t) : (cd(e, t), e);
}
var Ai = {
  svg: "http://www.w3.org/2000/svg"
}, Do = '<svg xmlns="' + Ai.svg + '"';
function dd(e) {
  var t = !1;
  e.substring(0, 4) === "<svg" ? e.indexOf(Ai.svg) === -1 && (e = Do + e.substring(4)) : (e = Do + ">" + e + "</svg>", t = !0);
  var n = fd(e);
  if (!t)
    return n;
  for (var r = document.createDocumentFragment(), i = n.firstChild; i.firstChild; )
    r.appendChild(i.firstChild);
  return r;
}
function fd(e) {
  var t;
  return t = new DOMParser(), t.async = !1, t.parseFromString(e, "text/xml");
}
function $r(e, t) {
  var n;
  return e = e.trim(), e.charAt(0) === "<" ? (n = dd(e).firstChild, n = document.importNode(n, !0)) : n = document.createElementNS(Ai.svg, e), t && ud(n, t), n;
}
const Mo = 0.95, pd = 1, $o = 3;
class md extends $l {
  constructor(n, r, i, o, s, a, l) {
    super(n, r, i, o, s, a, l);
    q(this, "_overrideColor");
    const u = this.handlers, c = n && n.defaultFillColor, p = n && n.defaultStrokeColor;
    this._overrideColor = (n == null ? void 0 : n.overrideColor) || !1;
    function E(v) {
      return i.computeStyle(v, ["no-fill"], {
        strokeLinecap: "round",
        strokeLinejoin: "round",
        stroke: eo,
        strokeWidth: 2
      });
    }
    function y(v) {
      return i.computeStyle(v, {
        strokeLinecap: "round",
        strokeLinejoin: "round",
        stroke: eo,
        strokeWidth: 2,
        fill: "white"
      });
    }
    function m(v, d, h) {
      h = E(h);
      const _ = $r("path", { ...h, d });
      return xo(v, _), _;
    }
    function g(v, d, h, _, x) {
      lu(_) && (x = _, _ = 0), _ = _ || 0, x = y(x);
      const O = d / 2, I = h / 2, P = $r("circle", {
        cx: O,
        cy: I,
        r: Math.round((d + h) / 4 - _),
        ...x
      });
      return xo(v, P), P;
    }
    const T = {
      "bpmn:MessageEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_MESSAGE", {
          xScaleFactor: 0.9,
          yScaleFactor: 0.9,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.235,
            my: 0.315
          }
        }), O = _ ? le(d, p, h.stroke) : Ce(d, c, h.fill), I = _ ? Ce(d, c, h.fill) : le(d, p, h.stroke);
        return m(v, x, {
          fill: O,
          stroke: I,
          strokeWidth: 1
        });
      },
      "bpmn:TimerEventDefinition": function(v, d, h = {}) {
        const _ = g(v, d.width, d.height, 0.2 * d.height, {
          fill: Ce(d, c, h.fill),
          stroke: le(d, p, h.stroke),
          strokeWidth: 2
        }), x = o.getScaledPath("EVENT_TIMER_WH", {
          xScaleFactor: 0.75,
          yScaleFactor: 0.75,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.5,
            my: 0.5
          }
        });
        m(v, x, {
          stroke: le(d, p, h.stroke),
          strokeWidth: 2
        });
        for (let O = 0; O < 12; O++) {
          const I = o.getScaledPath("EVENT_TIMER_LINE", {
            xScaleFactor: 0.75,
            yScaleFactor: 0.75,
            containerWidth: d.width,
            containerHeight: d.height,
            position: {
              mx: 0.5,
              my: 0.5
            }
          }), P = d.width / 2, C = d.height / 2;
          m(v, I, {
            strokeWidth: 1,
            stroke: le(d, p, h.stroke),
            transform: "rotate(" + O * 30 + "," + C + "," + P + ")"
          });
        }
        return _;
      },
      "bpmn:EscalationEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_ESCALATION", {
          xScaleFactor: 1,
          yScaleFactor: 1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.5,
            my: 0.2
          }
        }), O = _ ? le(d, p, h.stroke) : Ce(d, c, h.fill);
        return m(v, x, {
          fill: O,
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
      },
      "bpmn:ConditionalEventDefinition": function(v, d, h = {}) {
        const _ = o.getScaledPath("EVENT_CONDITIONAL", {
          xScaleFactor: 1,
          yScaleFactor: 1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.5,
            my: 0.222
          }
        });
        return m(v, _, {
          fill: Ce(d, c, h.fill),
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
      },
      "bpmn:LinkEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_LINK", {
          xScaleFactor: 1,
          yScaleFactor: 1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.57,
            my: 0.263
          }
        }), O = _ ? le(d, p, h.stroke) : Ce(d, c, h.fill);
        return m(v, x, {
          fill: O,
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
      },
      "bpmn:ErrorEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_ERROR", {
          xScaleFactor: 1.1,
          yScaleFactor: 1.1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.2,
            my: 0.722
          }
        }), O = _ ? le(d, p, h.stroke) : Ce(d, c, h.fill);
        return m(v, x, {
          fill: O,
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
      },
      "bpmn:CancelEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_CANCEL_45", {
          xScaleFactor: 1,
          yScaleFactor: 1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.638,
            my: -0.055
          }
        }), O = _ ? le(d, p, h.stroke) : "none", I = m(v, x, {
          fill: O,
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
        return Il(I, 45), I;
      },
      "bpmn:CompensateEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_COMPENSATION", {
          xScaleFactor: 1,
          yScaleFactor: 1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.22,
            my: 0.5
          }
        }), O = _ ? le(d, p, h.stroke) : Ce(d, c, h.fill);
        return m(v, x, {
          fill: O,
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
      },
      "bpmn:SignalEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_SIGNAL", {
          xScaleFactor: 0.9,
          yScaleFactor: 0.9,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.5,
            my: 0.2
          }
        }), O = _ ? le(d, p, h.stroke) : Ce(d, c, h.fill);
        return m(v, x, {
          strokeWidth: 1,
          fill: O,
          stroke: le(d, p, h.stroke)
        });
      },
      "bpmn:MultipleEventDefinition": function(v, d, h = {}, _) {
        const x = o.getScaledPath("EVENT_MULTIPLE", {
          xScaleFactor: 1.1,
          yScaleFactor: 1.1,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.222,
            my: 0.36
          }
        }), { stroke: O } = h, I = _ ? le(d, p, O) : Ce(d, c, h.fill);
        return m(v, x, {
          fill: I,
          stroke: O,
          strokeWidth: 1
        });
      },
      "bpmn:ParallelMultipleEventDefinition": function(v, d, h = {}) {
        const _ = o.getScaledPath("EVENT_PARALLEL_MULTIPLE", {
          xScaleFactor: 1.2,
          yScaleFactor: 1.2,
          containerWidth: d.width,
          containerHeight: d.height,
          position: {
            mx: 0.458,
            my: 0.194
          }
        });
        return m(v, _, {
          fill: Ce(d, c, h.fill),
          stroke: le(d, p, h.stroke),
          strokeWidth: 1
        });
      },
      "bpmn:TerminateEventDefinition": function(v, d, h = {}) {
        return g(v, d.width, d.height, 8, {
          fill: le(d, p, h.stroke),
          stroke: le(d, p, h.stroke),
          strokeWidth: 4
        });
      }
    };
    function A(v, d, h = {}) {
      const _ = vr(v), x = Ll(_);
      return Xs(
        _,
        "VariableListenerEventDefinition"
      ).length ? T["bpmn:MultipleEventDefinition"](
        d,
        v,
        h,
        x
      ) : _.get("eventDefinitions") && _.get("eventDefinitions").length > 1 && _.get("parallelMultiple") ? T["bpmn:ParallelMultipleEventDefinition"](
        d,
        v,
        h
      ) : tt(_, "bpmn:MessageEventDefinition") ? T["bpmn:MessageEventDefinition"](
        d,
        v,
        h,
        x
      ) : tt(_, "bpmn:TimerEventDefinition") ? T["bpmn:TimerEventDefinition"](d, v, h) : tt(_, "bpmn:ConditionalEventDefinition") ? T["bpmn:ConditionalEventDefinition"](d, v, h) : tt(_, "bpmn:SignalEventDefinition") ? T["bpmn:SignalEventDefinition"](
        d,
        v,
        h,
        x
      ) : tt(_, "bpmn:EscalationEventDefinition") ? T["bpmn:EscalationEventDefinition"](
        d,
        v,
        h,
        x
      ) : tt(_, "bpmn:LinkEventDefinition") ? T["bpmn:LinkEventDefinition"](d, v, h, x) : tt(_, "bpmn:ErrorEventDefinition") ? T["bpmn:ErrorEventDefinition"](
        d,
        v,
        h,
        x
      ) : tt(_, "bpmn:CancelEventDefinition") ? T["bpmn:CancelEventDefinition"](
        d,
        v,
        h,
        x
      ) : tt(_, "bpmn:CompensateEventDefinition") ? T["bpmn:CompensateEventDefinition"](
        d,
        v,
        h,
        x
      ) : tt(_, "bpmn:TerminateEventDefinition") ? T["bpmn:TerminateEventDefinition"](d, v, h) : null;
    }
    const B = (v, d, h = {}) => {
      h = Pn(h, ["fill", "stroke"]);
      const _ = u["bpmn:Task"](v, d, h), x = d.businessObject.get("type"), O = {
        class: "custom-service",
        fill: le(d, c, h.stroke),
        stroke: le(d, p, h.stroke),
        strokeWidth: 0
      }, I = $r("g", { class: "custom-node-marker" });
      switch (v.insertBefore(I, null), x) {
        case "shell":
          const P = o.getStaticPath("SERVICE_SHELL");
          m(v, P, O);
          break;
        case "copy":
          const C = o.getStaticPath("SERVICE_COPY");
          m(v, C, O);
          break;
        case "camel":
          const z = o.getStaticPath("SERVICE_CAMEL");
          m(v, z, O);
          break;
        case "dmn":
          const k = o.getStaticPath("SERVICE_DMN");
          m(v, k, O);
          break;
        case "http":
          const F = o.getStaticPath("SERVICE_HTTP_1");
          m(v, F, O);
          const U = o.getStaticPath("SERVICE_HTTP_2");
          m(v, U, O);
          break;
        case "mail":
          const Z = o.getStaticPath("SERVICE_MAIL_1");
          m(v, Z, O);
          const te = o.getStaticPath("SERVICE_MAIL_2");
          m(v, te, O);
          break;
        case "mq":
          const we = o.getStaticPath("SERVICE_MQ_1");
          m(v, we, O);
          const ve = o.getStaticPath("SERVICE_MQ_2");
          m(v, ve, O);
          break;
        case "sc":
          const ke = o.getStaticPath("SERVICE_SC_1");
          m(v, ke, O);
          const Ee = o.getStaticPath("SERVICE_SC_2");
          m(v, Ee, O);
          break;
        case "rest":
          const Se = o.getStaticPath("SERVICE_REST_1");
          m(v, Se, O);
          const De = o.getStaticPath("SERVICE_REST_2");
          m(v, De, O);
          break;
        default:
          g(v, 10, 10, 0, {
            fill: Ce(d, c, h.fill),
            stroke: "none",
            transform: "translate(6, 6)"
          });
          const Ge = o.getScaledPath("TASK_TYPE_SERVICE", {
            abspos: {
              x: 12,
              y: 18
            }
          });
          m(v, Ge, {
            fill: Ce(d, c, h.fill),
            stroke: le(d, p, h.stroke),
            strokeWidth: 1
          }), g(v, 10, 10, 0, {
            fill: Ce(d, c, h.fill),
            stroke: "none",
            transform: "translate(11, 10)"
          });
          const Te = o.getScaledPath("TASK_TYPE_SERVICE", {
            abspos: {
              x: 17,
              y: 22
            }
          });
          m(v, Te, {
            fill: Ce(d, c, h.fill),
            stroke: le(d, p, h.stroke),
            strokeWidth: 1
          });
      }
      return _;
    }, $ = (v, d, h = {}) => {
      const { renderIcon: _ = !0 } = h;
      h = Pn(h, ["fill", "stroke"]), vr(d).get("isInterrupting") === !1 && (h = {
        ...h,
        strokeDasharray: "6"
      });
      const O = g(v, d.width, d.height, {
        fillOpacity: Mo,
        ...h,
        fill: Ce(d, c, h.fill),
        stroke: le(d, p, h.stroke)
      });
      return _ && A(d, v, h), O;
    }, f = (v, d, h = {}) => {
      const { renderIcon: _ = !0 } = h;
      h = Pn(h, ["fill", "stroke"]);
      const x = vr(d), O = x.get("cancelActivity");
      h = {
        strokeWidth: 1.5,
        fill: Ce(d, c, h.fill),
        fillOpacity: pd,
        stroke: le(d, p, h.stroke)
      }, O === !1 && (h.strokeDasharray = "6");
      const I = g(v, d.width, d.height, h);
      return g(v, d.width, d.height, $o, {
        ...h,
        fill: "none"
      }), _ && A(d, v, h), I;
    }, R = (v, d, h = {}) => {
      const { renderIcon: _ = !0 } = h;
      h = Pn(h, ["fill", "stroke"]);
      const x = g(v, d.width, d.height, {
        fillOpacity: Mo,
        ...h,
        fill: Ce(d, c, h.fill),
        stroke: le(d, p, h.stroke),
        strokeWidth: 1.5
      });
      return g(v, d.width, d.height, $o, {
        fill: "none",
        stroke: le(d, p, h.stroke),
        strokeWidth: 1.5
      }), _ && A(d, v, h), x;
    };
    this.handlers["bpmn:ServiceTask"] = B, this.handlers["bpmn:StartEvent"] = $, this.handlers["bpmn:BoundaryEvent"] = f, this.handlers["bpmn:IntermediateEvent"] = R;
  }
  drawShape(n, r, i = {}) {
    let o, s = "var(--color-bg-5)";
    if (!this._overrideColor) {
      const a = Qi(r);
      o = a.get("color:border-color") || a.get("bioc:stroke"), s = a.get("color:background-color") || a.get("bioc:fill") || "var(--color-bg-5)";
    }
    return Q(r, "bpmn:Activity") ? (i = { stroke: o || "var(--color-activity)", fill: s, ...i }, super.drawShape(n, r, i)) : Q(r, "bpmn:StartEvent") ? (i = { stroke: o || "var(--color-start-event)", fill: s, ...i }, super.drawShape(n, r, i)) : Q(r, "bpmn:EndEvent") ? (i = { stroke: o || "var(--color-end-event)", fill: s, ...i }, super.drawShape(n, r, i)) : Q(r, "bpmn:BoundaryEvent") ? (i = { stroke: o || "var(--color-boundary-event)", fill: s, ...i }, super.drawShape(n, r, i)) : Q(r, "bpmn:CatchEvent") || Q(r, "bpmn:ThrowEvent") ? (i = { stroke: o || "var(--color-catch-event)", fill: s, ...i }, super.drawShape(n, r, i)) : Q(r, "bpmn:Gateway") ? (i = { stroke: o || "var(--color-gateway)", fill: s, ...i }, super.drawShape(n, r, i)) : Q(r, "bpmn:Group") ? (i = { stroke: o || "var(--color-element)", fill: "none", ...i }, super.drawShape(n, r, i)) : super.drawShape(n, r, {
      stroke: o || "var(--color-element)",
      fill: s,
      ...i
    });
  }
  drawConnection(n, r, i = {}) {
    let o;
    if (!this._overrideColor) {
      const s = Qi(r);
      o = s.get("color:border-color") || s.get("bioc:stroke");
    }
    return Ml(r, ["bpmn:SequenceFlow", "bpmn:Association"]) ? (i = { stroke: o || "#9cafcf", ...i }, super.drawConnection(n, r, i)) : super.drawConnection(n, r, i);
  }
}
function Pn(e, t = []) {
  return t.reduce((n, r) => (e[r] && (n[r] = e[r]), n), {});
}
class hd extends Nl {
  constructor() {
    super(), this.pathMap.SERVICE_SHELL = {
      d: "m26.02111,22.35561l-20.79771,0c-0.67287,0 -1.22339,-0.59 -1.22339,-1.31112l0,-15.73338c0,-0.72111 0.55053,-1.31112 1.22339,-1.31112l20.79771,0c0.67287,0 1.22339,0.59 1.22339,1.31112l0,15.73338c0,0.72111 -0.55053,1.31112 -1.22339,1.31112zm-18.85252,-11.09203c-0.19574,0 -0.39149,0.07867 -0.53829,0.236c-0.29361,0.31467 -0.29361,0.83911 0,1.15378l2.78934,2.98934l-2.75264,2.95001c-0.29361,0.31467 -0.29361,0.83911 0,1.15378s0.78297,0.31467 1.07659,0l3.29093,-3.5269c0.29361,-0.31467 0.29361,-0.83911 0,-1.15378l-3.32763,-3.56623c-0.14681,-0.15733 -0.34255,-0.236 -0.53829,-0.236zm10.75364,0l-6.20261,0c-0.41595,0 -0.7585,0.36711 -0.7585,0.81289s0.34255,0.81289 0.7585,0.81289l6.20261,0c0.41595,0 0.7585,-0.36711 0.7585,-0.81289s-0.34255,-0.81289 -0.7585,-0.81289z"
    }, this.pathMap.SERVICE_COPY = {
      d: "m22.25426,4.36071c0.32142,-0.1 0.65571,-0.1 0.97713,0c0.78428,0.25 1.20856,1.05002 1.00284,1.81254l-0.02571,0.0875l-5.82421,16.98784c-0.12857,0.37501 -0.41142,0.68751 -0.77142,0.87502c-0.73285,0.36251 -1.61998,0.0875 -2.0314,-0.58751l-0.05143,-0.0875l-3.65138,-7.10014l-7.30276,-3.55007c-0.29571,-0.15 -0.53999,-0.37501 -0.69428,-0.67501l-0.05143,-0.1l-0.03857,-0.1c-0.25714,-0.76252 0.14143,-1.57503 0.88713,-1.87504l0.09,-0.0375s17.48549,-5.65011 17.48549,-5.65011zm-0.59142,3.62507l-7.99704,7.77515l3.20139,6.22512l4.79565,-14.00028zm-1.18284,-1.15002l-14.41267,4.67509l6.40277,3.11256l8.0099,-7.77515l0,0l0,-0.0125z"
    }, this.pathMap.SERVICE_CAMEL = {
      d: "m21.65023,16.92556c-0.04825,-0.2448 -0.08444,-0.476 -0.13269,-0.7208c-0.10856,-0.5168 -0.21712,-1.0336 -0.32569,-1.5504c0,-0.0408 -0.03619,-0.0816 -0.06031,-0.136c-0.16887,0.4216 -0.10856,0.8296 -0.02412,1.2376c0.10856,0.5168 0.27744,1.0064 0.49456,1.4824c0.07237,0.1496 0.0965,0.3536 0.07237,0.5304c-0.06031,0.7888 -0.15681,1.564 -0.21712,2.35281c-0.01206,0.1496 0.01206,0.3128 0.04825,0.4624c0.0965,0.3944 0.06031,0.8024 0,1.1968c-0.03619,0.1768 -0.10856,0.2992 -0.27744,0.2856c-0.39806,-0.0544 -0.78406,-0.1224 -1.20625,-0.1904c0.08444,-0.2448 0.25331,-0.2856 0.39806,-0.2584c0.25331,0.0408 0.34981,-0.1224 0.39806,-0.3264c0.07237,-0.2992 0.14475,-0.5984 0.15681,-0.8976c0.03619,-0.8568 0.02412,-1.7272 -0.21712,-2.55681c-0.04825,-0.1768 -0.0965,-0.3536 -0.193,-0.5168c-0.20506,-0.3536 -0.27744,-0.748 -0.34981,-1.156c-0.03619,-0.204 -0.12062,-0.3944 -0.20506,-0.5848c-0.02412,-0.0544 -0.10856,-0.1224 -0.15681,-0.1224c-0.04825,0 -0.10856,0.1088 -0.10856,0.1768c-0.01206,0.2448 -0.03619,0.4896 -0.01206,0.7344c0.01206,0.2584 0.04825,0.5168 0.08444,0.7616c0.03619,0.2584 0.07237,0.5168 0.14475,0.7616c0.06031,0.2176 0.04825,0.3944 -0.03619,0.5984l-1.26656,2.74721c-0.07237,0.1496 -0.12062,0.3128 -0.16887,0.4624c-0.12062,0.3944 -0.37394,0.5848 -0.73581,0.612c-0.22919,0.0136 -0.45837,0 -0.68756,-0.0408c-0.08444,0 -0.15681,-0.1224 -0.22919,-0.1768c0.06031,-0.0816 0.10856,-0.1904 0.193,-0.2584c0.07237,-0.0544 0.16887,-0.0816 0.26537,-0.1088c0.36187,-0.0544 0.61519,-0.3128 0.74787,-0.6528c0.21712,-0.5304 0.39806,-1.0744 0.56694,-1.6184c0.0965,-0.2992 0.16887,-0.5984 0.24125,-0.9112c0.0965,-0.5032 -0.03619,-0.9792 -0.15681,-1.4416c-0.07237,-0.2856 -0.07237,-0.5304 0.01206,-0.8024c0.04825,-0.1768 0.04825,-0.408 -0.02412,-0.5712c-0.2895,-0.6664 -0.579,-1.3464 -0.74787,-2.0808c0,-0.0136 -0.02412,-0.0408 -0.04825,-0.0544c-0.04825,0.0408 -0.10856,0.0544 -0.16887,0.0952c-0.56694,0.3672 -1.14594,0.6664 -1.76112,0.884c-0.13269,0.0408 -0.24125,0.1224 -0.37394,0.1904c-0.07237,0.0408 -0.14475,0.0544 -0.21712,0.068c-0.90469,0.0544 -1.80937,0.0816 -2.68994,-0.2448c-0.13269,-0.0544 -0.26537,-0.068 -0.39806,-0.1088c-0.20506,-0.0544 -0.32569,0.0408 -0.32569,0.272c0,0.6936 0.04825,1.3736 0.20506,2.0536c0.12062,0.5168 0.20506,1.0336 0.20506,1.564c0,0.3808 0.10856,0.7616 0.16887,1.1424l0.31362,1.9448c0.03619,0.2448 -0.12062,0.5032 -0.37394,0.544c-0.21712,0.0408 -0.44631,0.0272 -0.66344,0.0408c-0.12062,0 -0.25331,-0.0136 -0.37394,-0.0272c-0.14475,0 -0.193,-0.068 -0.13269,-0.2312c0.07237,-0.1904 0.20506,-0.2856 0.37394,-0.3264c0.33775,-0.0816 0.41012,-0.1904 0.42219,-0.5848c0,-0.612 -0.06031,-1.224 -0.21712,-1.8088c-0.08444,-0.2856 -0.22919,-0.5576 -0.34981,-0.8296c-0.02412,0 -0.03619,0 -0.06031,0.0136c-0.01206,0.1088 -0.03619,0.2176 -0.02412,0.3128c0.03619,0.544 0.08444,1.0744 0.12062,1.6184c0.02412,0.3128 0.03619,0.6256 0.04825,0.9384c0,0.1768 -0.04825,0.2856 -0.22919,0.3128c-0.37394,0.0544 -0.73581,0.1224 -1.12181,0.1768c-0.07237,0 -0.20506,-0.0544 -0.22919,-0.136c-0.04825,-0.136 0.04825,-0.2312 0.16887,-0.272c0.02412,0 0.06031,-0.0136 0.08444,-0.0272c0.26537,-0.1224 0.50662,-0.2856 0.53075,-0.6664c0.02412,-0.544 0.08444,-1.0744 0.10856,-1.6184c0,-0.1632 -0.02412,-0.34 -0.08444,-0.476c-0.193,-0.4488 -0.24125,-0.9112 -0.13269,-1.3872c0.08444,-0.34 0.08444,-0.68 0.01206,-1.02c-0.01206,-0.0816 0,-0.1632 -0.01206,-0.2448c-0.02412,-0.1768 -0.03619,-0.3672 -0.10856,-0.5032c-0.193,-0.34 -0.32569,-0.7072 -0.386,-1.1016c-0.02412,-0.1768 -0.10856,-0.3264 -0.22919,-0.4352c-0.16887,-0.1632 -0.31362,-0.3808 -0.49456,-0.5304c-0.13269,-0.0952 -0.31362,-0.1496 -0.47044,-0.1632c-0.06031,0 -0.16887,0.1224 -0.18094,0.2176c-0.02412,0.1496 -0.08444,0.204 -0.20506,0.2176c-0.37394,0.068 -0.71169,-0.0408 -1.07356,-0.1224c-0.65137,-0.1632 -1.13387,-0.6528 -1.59225,-1.1152c-0.37394,-0.3808 -0.49456,-0.952 -0.59106,-1.5096c-0.06031,-0.3672 -0.13269,-0.7344 -0.15681,-1.1152c-0.01206,-0.3264 0.03619,-0.6664 0.04825,-1.0064c0.01206,-0.204 0.02412,-0.408 0.01206,-0.612c0,-0.0816 -0.08444,-0.1632 -0.14475,-0.2176c-0.27744,-0.1904 -0.54281,-0.4216 -0.89262,-0.4352c-0.15681,0 -0.2895,-0.2448 -0.22919,-0.5032c0.04825,-0.2584 0.10856,-0.5168 0.24125,-0.7344c0.07237,-0.136 0.26537,-0.2176 0.41012,-0.2584c0.34981,-0.068 0.68756,-0.1496 1.01325,-0.3128c0.33775,-0.1632 0.66344,-0.1904 0.965,0.136c0.15681,0.1632 0.37394,0.2176 0.59106,0.1768c0.08444,0 0.193,0.0544 0.27744,0.0952c0.02412,0 0.02412,0.1088 0,0.1496c-0.10856,0.2176 -0.10856,0.3672 0.03619,0.5304c0.37394,0.4216 0.45837,0.9384 0.45837,1.5096c0,0.2856 0,0.5848 0.03619,0.8704c0.02412,0.2992 0.13269,0.3672 0.386,0.2856c0.68756,-0.1904 1.19419,-0.6936 1.55606,-1.3464c0.37394,-0.6528 0.69962,-1.3464 1.03737,-2.0264c0.193,-0.3808 0.36187,-0.7616 0.55487,-1.1288c0.07237,-0.136 0.13269,-0.2584 0.22919,-0.3808c0.24125,-0.34 0.55487,-0.4624 0.85644,-0.34c0.31362,0.1224 0.53075,0.4896 0.51869,0.8976c0,0.1224 -0.01206,0.2584 -0.03619,0.3808c-0.04825,0.2448 0,0.4352 0.0965,0.6528c0.13269,0.34 0.26537,0.6936 0.37394,1.0472c0.0965,0.2584 0.16887,0.5304 0.39806,0.6936c0.10856,0.0816 0.25331,0.1088 0.37394,0.136c0.13269,0.0136 0.24125,-0.0816 0.24125,-0.2312c0,-0.6392 0.21712,-1.2104 0.33775,-1.8088c0.04825,-0.272 0.04825,-0.5576 0.0965,-0.8296c0.0965,-0.4624 0.37394,-0.7208 0.772,-0.8024c0.36187,-0.0816 0.65137,0.068 0.90469,0.3944c0.14475,0.1904 0.31362,0.3672 0.51869,0.4624c0.65137,0.3536 1.10975,0.9112 1.41131,1.6184c0.16887,0.3944 0.34981,0.8024 0.4825,1.2104c0.0965,0.2584 0.13269,0.544 0.16887,0.8296c0.04825,0.3536 0.20506,0.5576 0.51869,0.6664c0.47044,0.1632 0.85644,0.4624 1.13387,0.9248c0.15681,0.2584 0.21712,0.5576 0.21712,0.8704c0,0.5848 0.08444,1.1424 0.193,1.7136c0.07237,0.3944 0.07237,0.816 0.10856,1.224c0.07237,0.8432 0.14475,1.6728 0.21712,2.51601c0,0.0816 0,0.1768 0.01206,0.2448c-0.03619,0 -0.06031,0.0136 -0.0965,0.0136l0,0l0.02412,0.0544z"
    }, this.pathMap.SERVICE_DMN = {
      d: "m4.01314,5.18141l0,16.14588c0,0.66057 0.55194,1.19411 1.2353,1.19411l16.70281,0c0.68336,0 1.2353,-0.53354 1.2353,-1.19411l0,-16.13317c0,-0.66057 -0.55194,-1.19411 -1.2353,-1.19411l-16.71595,0c-0.68336,0 -1.2353,0.53354 -1.2353,1.19411l0,0l0.01314,-0.0127zm5.99251,16.17128l-4.38925,0c-0.22341,0 -0.40739,-0.17785 -0.40739,-0.3938l0,-3.0869l4.7835,0l0,3.468l0,0l0.01314,0.0127zm0,-4.624l-4.79664,0l0,-3.468l4.7835,0l0,3.468l0,0l0.01314,0zm5.99251,4.624l-4.7835,0l0,-3.468l4.7835,0l0,3.468zm0,-4.624l-4.7835,0l0,-3.468l4.7835,0l0,3.468zm5.57198,4.624l-4.38925,0l0,-3.468l4.7835,0l0,3.0869c0,0.21596 -0.18398,0.3938 -0.40739,0.3938l0,0l0.01314,-0.0127zm0.40739,-4.6367l-4.7835,0l0,-3.468l4.7835,0l0,3.468zm0,-4.624l-4.7835,0l0,-3.468l-1.19587,0l0,3.468l-4.7835,0l0,-3.468l-1.19587,0l0,3.468l-4.80978,0l0,-3.0869c0,-0.21596 0.18398,-0.3938 0.40739,-0.3938l15.95375,0c0.22341,0 0.40739,0.17785 0.40739,0.3938l0,3.0869z"
    }, this.pathMap.SERVICE_HTTP_1 = {
      d: "m13.86478,4.01167c-5.441,0 -9.85295,4.31949 -9.86478,9.74804c0,5.38185 4.36463,9.75972 9.85295,9.77139c5.45283,0 9.86478,-4.30782 9.90026,-9.75972c-0.02366,-5.4052 -4.40012,-9.77139 -9.88843,-9.77139l0,0.01167zm-6.30447,8.62731c0.20108,-0.17511 0.3785,-0.37358 0.60324,-0.53702c0.28388,-0.21014 0.6269,-0.29186 0.96992,-0.29186l2.79147,0c0.48496,0 0.91078,-0.18679 1.28928,-0.4553c0.41399,-0.30353 0.82798,-0.59539 1.24197,-0.88725c0.43765,-0.30353 0.87529,-0.61874 1.31294,-0.9106c0.03548,-0.02335 0.0828,-0.05837 0.13011,-0.07005c0,0 0.01183,0.02335 0.02366,0.02335c-0.04731,0.05837 -0.10645,0.11674 -0.1656,0.16344c-1.53767,1.52933 -3.08718,3.04699 -4.62485,4.56465c-0.04731,0.0467 -0.09463,0.08172 -0.14194,0.10507c-0.63873,0.21014 -1.15917,0.57204 -1.62047,1.03901l-0.05914,0.05837s-0.02366,0.01167 -0.04731,0.03502l-0.28388,-0.42027c-0.48496,-0.71213 -0.95809,-1.42426 -1.44305,-2.1364c-0.0828,-0.11674 -0.07097,-0.18679 0.02366,-0.28018l0,0zm9.77015,-0.94562c-0.43765,0.61874 -0.87529,1.23748 -1.32477,1.85621c-0.10645,0.14009 -0.22474,0.26851 -0.31936,0.4086c-0.28388,0.42027 -0.40216,0.88725 -0.40216,1.38924l0,2.56835c0,0.47865 -0.1656,0.88725 -0.50862,1.2258c-0.11828,0.11674 -0.24839,0.23349 -0.35485,0.3619c-0.05914,0.07005 -0.10645,0.07005 -0.18925,0.01167c-0.63873,-0.42027 -1.27745,-0.84055 -1.92801,-1.2725c-0.23657,-0.16344 -0.47313,-0.31521 -0.7097,-0.46697c0.22474,-0.25683 0.44947,-0.49032 0.63873,-0.75883c0.17742,-0.26851 0.30753,-0.57204 0.4613,-0.8639c0.04731,-0.10507 0.10645,-0.21014 0.18925,-0.29186c1.56133,-1.55268 3.12266,-3.09369 4.68399,-4.64637c0.02366,-0.02335 0.04731,-0.0467 0.07097,-0.07005c0,0 0.02366,0.01167 0.03548,0.02335c-0.11828,0.16344 -0.23657,0.33855 -0.34302,0.50199l0,0l0,0.02335zm2.03446,-2.98862c-0.26022,0.44362 -0.55593,0.87557 -0.82798,1.30752c-0.4613,0.72381 -1.12369,1.2725 -1.72693,1.86789c-1.34842,1.34254 -2.69685,2.67341 -4.04527,4.01596c-0.04731,0.0467 -0.07097,0.09339 -0.09463,0.15177c-0.20108,0.66544 -0.6269,1.19078 -1.11186,1.66943c-0.13011,0.12842 -0.27205,0.25683 -0.40216,0.39693c-0.07097,0.08172 -0.13011,0.07005 -0.18925,0s-0.13011,-0.14009 -0.20108,-0.22181c-0.0828,0.08172 -0.15377,0.15177 -0.22474,0.22181c-0.11828,0.11674 -0.21291,0.15177 -0.36668,0.05837c-0.15377,-0.10507 -0.28388,-0.24516 -0.42582,-0.3619c-0.02366,-0.02335 -0.03548,-0.0467 -0.07097,-0.09339c-0.0828,0.07005 -0.15377,0.12842 -0.23657,0.19846c-0.10645,0.08172 -0.22474,0.16344 -0.34302,0.24516c-0.05914,0.03502 -0.14194,0.03502 -0.22474,0.03502c0,-0.07005 0,-0.16344 0.02366,-0.22181c0.10645,-0.16344 0.22474,-0.31521 0.33119,-0.46697c0.02366,-0.03502 0.05914,-0.07005 0.10645,-0.11674c-0.04731,-0.03502 -0.09463,-0.07005 -0.13011,-0.10507c-0.11828,-0.14009 -0.23657,-0.26851 -0.34302,-0.42027c-0.07097,-0.10507 -0.04731,-0.21014 0.04731,-0.30353c0.0828,-0.07005 0.1656,-0.12842 0.26022,-0.19846l0,-0.08172c-0.0828,-0.07005 -0.17742,-0.12842 -0.24839,-0.21014c-0.02366,-0.02335 -0.02366,-0.10507 0,-0.12842c0.48496,-0.47865 0.9226,-0.98064 1.53767,-1.29585c0.1656,-0.08172 0.34302,-0.14009 0.50862,-0.22181c0.0828,-0.0467 0.18925,-0.08172 0.24839,-0.15177c1.72693,-1.70445 3.46568,-3.42057 5.19261,-5.12502c0.27205,-0.25683 0.59141,-0.4553 0.89895,-0.67711c0.42582,-0.30353 0.85164,-0.61874 1.36025,-0.78218c0.20108,-0.07005 0.40216,-0.11674 0.61507,-0.11674s0.30753,0.12842 0.30753,0.33855c0.01183,0.28018 -0.09463,0.54869 -0.22474,0.78218l0,0l0,0.01167z"
    }, this.pathMap.SERVICE_HTTP_2 = {
      d: "m12.86,5.75s-0.08,0.03 -0.09,0.06c-0.06,0.12 -0.11,0.24 -0.18,0.38c0.23,-0.02 0.43,0 0.58,0.16c0.16,0.16 0.19,0.36 0.18,0.57c0.03,0 0.04,0 0.05,0c0.08,-0.03 0.14,-0.06 0.22,-0.1c0.16,-0.07 0.19,-0.14 0.18,-0.31c-0.05,-0.49 -0.45,-0.81 -0.94,-0.75l0,-0.01z"
    }, this.pathMap.SERVICE_MAIL_1 = {
      d: "m22.07399,10.40053l0,-3.48738c0,-0.74889 -0.60144,-1.36366 -1.35882,-1.36366l-4.70017,0l-1.62613,-1.30777c-0.47893,-0.32415 -1.10265,-0.32415 -1.57044,0.01118l-1.54816,1.28541l-4.38831,0c-0.74624,0 -1.35882,0.60359 -1.35882,1.36366l0,3.45385l-1.04696,0.87185l0,9.4897c0,0.74889 0.60144,1.36366 1.35882,1.36366l15.92712,0c0.74624,0 1.35882,-0.60359 1.35882,-1.36366l0,-9.47852l-1.04696,-0.83831l0.00001,-0.00001zm-0.90217,1.93371l-7.37326,3.05146l-7.37326,-3.05146l0,-5.42109c0,-0.25708 0.20048,-0.45828 0.45665,-0.45828l13.83321,0c0.25617,0 0.45665,0.2012 0.45665,0.45828c0,0 0,5.42109 0,5.42109l0.00001,0z"
    }, this.pathMap.SERVICE_MAIL_2 = {
      d: "m13.71,8c-0.78,0 -1.43,0.24 -1.95,0.71c-0.5,0.46 -0.76,1.01 -0.76,1.65s0.22,1.12 0.65,1.51c0.47,0.42 1.11,0.63 1.91,0.63c0.7,0 1.33,-0.19 1.9,-0.56l-0.2,-0.27c-0.49,0.33 -1.05,0.49 -1.68,0.49s-1.06,-0.16 -1.41,-0.48c-0.36,-0.33 -0.54,-0.78 -0.54,-1.35s0.19,-1.04 0.56,-1.42c0.4,-0.41 0.91,-0.61 1.52,-0.61c0.56,0 1.01,0.14 1.38,0.43c0.38,0.3 0.58,0.69 0.58,1.18c0,0.35 -0.11,0.66 -0.33,0.94c-0.23,0.3 -0.51,0.46 -0.84,0.46c-0.09,0 -0.14,-0.04 -0.14,-0.13c0,-0.12 0.11,-0.56 0.31,-1.32c0.13,-0.43 0.23,-0.76 0.31,-0.97l-0.57,0l-0.03,0.06c-0.1,-0.09 -0.27,-0.14 -0.49,-0.14c-0.41,0 -0.77,0.18 -1.1,0.54c-0.39,0.43 -0.58,0.91 -0.58,1.45s0.27,0.84 0.8,0.84c0.35,0 0.6,-0.09 0.76,-0.26c0.03,-0.15 0.05,-0.2 0.05,-0.15c0,0.29 0.19,0.44 0.57,0.44c0.51,0 0.93,-0.19 1.27,-0.56c0.28,-0.33 0.43,-0.71 0.43,-1.16c0,-0.55 -0.2,-1 -0.59,-1.35c-0.44,-0.39 -1.03,-0.59 -1.76,-0.59l-0.01,0l-0.02,-0.01zm0.18,2.49c-0.23,0.56 -0.5,0.83 -0.81,0.83c-0.14,0 -0.21,-0.13 -0.21,-0.39c0,-0.39 0.09,-0.78 0.28,-1.16c0.22,-0.45 0.48,-0.67 0.76,-0.67c0.18,0 0.27,0.12 0.27,0.36s-0.09,0.59 -0.28,1.04l0,0l-0.01,-0.01z"
    }, this.pathMap.SERVICE_MQ_1 = {
      d: "m20.50197,5.06155c-4.36488,-3.06447 -10.22662,1.28779 -12.69472,3.21948c-0.13712,0.10732 0,0.31002 0.13712,0.2504c2.57094,-1.25202 8.72976,-3.88722 11.50637,-1.71705c2.2967,1.7886 1.83965,5.69967 1.70253,7.08285c-0.01143,0.10732 0.12569,0.15501 0.1714,0.05962c0.73129,-1.37126 2.92516,-5.77121 -0.8227,-8.8953zm-1.8168,11.69743c-2.57094,1.25202 -8.72976,3.88722 -11.50637,1.71705c-2.2967,-1.7886 -1.83965,-5.69967 -1.70253,-7.08285c0.01143,-0.10732 -0.12569,-0.14309 -0.1714,-0.05962c-0.73129,1.37126 -2.92516,5.77121 0.8227,8.8953c4.36488,3.07639 10.22662,-1.28779 12.69472,-3.21948c0.13712,-0.10732 0,-0.31002 -0.14854,-0.2504l0.01143,0z"
    }, this.pathMap.SERVICE_MQ_2 = {
      d: "m7.56012,10.65829l0,4.83454c0,0.3223 -0.05385,0.51124 -0.16154,0.57792c-0.09693,0.04446 -0.28001,0.08891 -0.56002,0.12225l0,0.45567l1.96007,0l0,-0.46678c-0.28001,-0.02223 -0.46309,-0.06668 -0.57079,-0.13337c-0.09693,-0.06668 -0.14,-0.25562 -0.14,-0.56681l0,-4.89011l1.69083,6.04596l0.37694,0l1.69083,-6.03485l0,4.86789c0,0.3223 -0.05385,0.52235 -0.16154,0.58904c-0.07539,0.04446 -0.26924,0.08891 -0.57079,0.12225l0,0.45567l2.12161,0l0,-0.46678c-0.31232,-0.03334 -0.50617,-0.06668 -0.59233,-0.13337c-0.09693,-0.06668 -0.14,-0.26673 -0.14,-0.56681l0,-4.83454c0,-0.3223 0.05385,-0.51124 0.17231,-0.58904c0.09693,-0.06668 0.29078,-0.11114 0.57079,-0.13337l0,-0.46678l-1.60467,0l-1.58313,5.6792l-1.5939,-5.6792l-1.65852,0l0,0.45567c0.33386,0.03334 0.52771,0.0778 0.6031,0.13337c0.09693,0.06668 0.14,0.26673 0.14,0.58904l0,0.02223l0.01077,0.01111zm10.98499,4.92346c-0.25847,0 -0.4954,-0.25562 -0.67848,-0.75574c0.71079,-0.73352 1.06619,-1.81157 1.06619,-3.22303c0,-1.15585 -0.2477,-2.10053 -0.75387,-2.84516c-0.44155,-0.65572 -0.9908,-0.97802 -1.64775,-0.97802s-1.2062,0.3223 -1.65852,0.97802c-0.4954,0.74463 -0.7431,1.68931 -0.7431,2.84516s0.2477,2.14498 0.7431,2.8785c0.44155,0.64461 0.9908,0.96691 1.64775,0.96691c0.32309,0 0.6031,-0.08891 0.8508,-0.25562c0.25847,0.68906 0.6031,1.03359 1.01234,1.03359c0.32309,0 0.6031,-0.23339 0.86157,-0.71129l-0.20462,-0.37787c-0.19385,0.27785 -0.3554,0.42233 -0.4954,0.42233l0,0l0,0.02223zm-1.54005,-0.74463c-0.14,0.06668 -0.28001,0.10003 -0.42001,0.10003c-0.40924,0 -0.61387,-0.25562 -0.61387,-0.74463c0,-0.20005 0.04308,-0.36676 0.14,-0.50013c0.08616,-0.12225 0.19385,-0.18894 0.30155,-0.18894c0.28001,0 0.54925,0.42233 0.80772,1.26698c0,-0.02223 -0.07539,0 -0.20462,0.06668l0,0l-0.01077,0zm0.66772,-0.60015c-0.15077,-0.4001 -0.28001,-0.70018 -0.38771,-0.88911c-0.22616,-0.36676 -0.4954,-0.54458 -0.79695,-0.54458c-0.28001,0 -0.50617,0.13337 -0.68925,0.4001c-0.16154,0.23339 -0.2477,0.51124 -0.2477,0.85577c0,0.21116 0.04308,0.4001 0.09693,0.56681c-0.52771,-0.57792 -0.79695,-1.57817 -0.79695,-3.00075c0,-0.9558 0.15077,-1.73377 0.44155,-2.3228c0.31232,-0.64461 0.72156,-0.96691 1.24927,-0.96691c0.40924,0 0.76464,0.21116 1.05542,0.64461c0.42001,0.60015 0.62464,1.48926 0.62464,2.65622s-0.18308,2.06718 -0.54925,2.61177l0,0l0,-0.01111z"
    }, this.pathMap.SERVICE_SC_1 = {
      d: "m14.79685,19.26627l-5.42773,0c-2.11549,0 -3.71117,-1.00376 -4.73869,-2.93505c-0.24177,-0.45741 -0.36265,-0.97835 -0.49563,-1.47388c-0.09671,-0.35576 -0.14506,-0.73694 -0.13297,-1.0927c0.03627,-1.70258 0.65278,-3.12564 1.89789,-4.24375c0.70113,-0.62259 1.49897,-0.99106 2.38143,-1.19435c0.16924,-0.03812 0.3143,-0.20329 0.43519,-0.33035c0.58025,-0.648 1.12423,-1.35953 1.74074,-1.96941c0.55607,-0.54635 1.2572,-0.88941 1.97042,-1.19435c1.19676,-0.52094 2.42979,-0.55906 3.66281,-0.39388c1.31765,0.17788 2.52649,0.74965 3.49357,1.728c1.29347,1.15623 1.97042,2.46494 2.29681,3.29082c0.08462,0.15247 0.21759,0.31765 0.36265,0.39388c1.2572,0.62259 2.09131,1.62635 2.55067,3.01129c0.29012,0.88941 0.33848,1.79153 0.1088,2.66823c-0.35057,1.39764 -1.12423,2.50305 -2.38143,3.18917c-0.74949,0.40659 -1.53524,0.58447 -2.38143,0.57176c-1.7891,-0.02541 -3.55402,0 -5.34311,0l0,0l0,-0.02541zm-0.02418,-0.92753l5.52444,0c0.50772,0 0.99126,-0.08894 1.46271,-0.29223c1.80119,-0.76235 2.80453,-2.87152 2.24846,-4.82822c-0.35057,-1.23247 -1.10005,-2.13458 -2.24846,-2.63011c-0.27804,-0.11435 -0.51981,-0.30494 -0.61651,-0.60988c-0.27804,-0.97835 -0.83411,-1.76611 -1.48688,-2.50305c-0.95499,-1.10541 -2.11549,-1.82964 -3.49357,-2.10917c-1.55942,-0.31765 -3.0463,-0.05082 -4.42439,0.81317c-0.99126,0.62259 -1.74074,1.49929 -2.38143,2.47764c-0.25386,0.38118 -0.56816,0.55906 -0.99126,0.60988c-0.26595,0.03812 -0.54398,0.10165 -0.78575,0.216c-1.52315,0.72423 -2.42979,1.98211 -2.68365,3.6974c-0.15715,1.06729 0.08462,2.10917 0.65278,3.01129c0.89455,1.42306 2.15175,2.1727 3.79579,2.14729c1.80119,-0.01271 3.61446,0 5.42773,0l0.01209,0l-0.01209,0z"
    }, this.pathMap.SERVICE_SC_2 = {
      d: "m17.77926,6.98091c0.13362,0.41985 0.2806,0.78179 0.34741,1.14374c0.25388,1.14374 0.46767,2.30195 0.36078,3.48912c-0.13362,1.40433 -0.60129,2.62046 -1.87069,3.21404c-0.44095,0.20269 -0.92198,0.36194 -1.38966,0.3909c-1.02888,0.05791 -2.05776,0.01448 -3.11337,-0.04343c0.24052,-0.10134 0.48104,-0.21716 0.72155,-0.28955c2.00431,-0.59358 3.36725,-1.99792 4.2625,-3.99584c0.1069,-0.24612 0.33405,-0.55015 0.12026,-0.92657c-0.09353,0.1303 -0.17371,0.23164 -0.24052,0.34746c-0.68147,1.28851 -1.6569,2.27299 -2.85949,2.95344c-0.60129,0.33299 -1.28276,0.5212 -1.9375,0.76732c-0.36078,0.1303 -0.74828,0.17373 -1.09569,0.30403c-0.92198,0.33299 -1.37629,-0.17373 -1.53664,-1.04239c-0.2806,-1.54911 0.36078,-2.73628 1.61681,-3.35882c0.52112,-0.2606 1.1625,-0.28955 1.75043,-0.3909c0.65474,-0.11582 1.32285,-0.11582 1.95086,-0.30403c1.09569,-0.31851 1.99095,-0.99896 2.68578,-1.96896c0.05345,-0.07239 0.12026,-0.14478 0.21379,-0.27508l0.01336,-0.01448zm-7.88363,8.80242c-0.20043,-0.01448 -0.3875,-0.1303 -0.33405,-0.34746c0.02672,-0.14478 0.21379,-0.31851 0.34741,-0.34746c0.21379,-0.05791 0.29397,0.14478 0.29397,0.37642s-0.09353,0.34746 -0.30733,0.33299l0,0l0,-0.01448z"
    }, this.pathMap.SERVICE_REST_1 = {
      d: "m23.73344,12.53547c-0.0373,-0.43299 -0.41027,-0.75136 -0.82055,-0.71315l-0.90757,0.07641c-0.42271,0.0382 -0.88271,-0.26743 -1.04433,-0.66221l-0.63406,-1.26075c-0.22379,-0.35658 -0.19892,-0.91691 0.0746,-1.24802l0.59676,-0.71315c0.27352,-0.33111 0.23622,-0.82777 -0.09946,-1.0952l-1.16866,-1.00605c-0.32325,-0.28017 -0.79568,-0.24196 -1.0692,0.08914c0,0 0,0 0,0l-0.59676,0.71315c-0.27352,0.33111 -0.80811,0.45846 -1.19352,0.2929l-1.31785,-0.42025c-0.41027,-0.08914 -0.77082,-0.52213 -0.80811,-0.94238l-0.0746,-0.92965c-0.0373,-0.43299 -0.41027,-0.75136 -0.82055,-0.71315l-1.51677,0.12735c-0.42271,0.0382 -0.73352,0.40752 -0.69622,0.8405l0.0746,0.92965c0.0373,0.43299 -0.26108,0.90418 -0.64649,1.06973l-1.23082,0.64948c-0.34811,0.24196 -0.89514,0.20376 -1.21839,-0.07641l-0.69622,-0.59854c-0.32325,-0.28017 -0.79568,-0.24196 -1.0692,0.08914c0,0 0,0 0,0l-0.98217,1.19708c-0.27352,0.33111 -0.23622,0.81503 0.08703,1.0952l0.69622,0.61127c0.32325,0.28017 0.44757,0.82777 0.28595,1.22255l-0.41027,1.3499c-0.08703,0.42025 -0.50973,0.78956 -0.92001,0.82777l-0.90757,0.07641c-0.42271,0.0382 -0.73352,0.40752 -0.69622,0.8405l0.12433,1.55365c0.0373,0.43299 0.39784,0.75136 0.82055,0.71315l0.90757,-0.07641c0.42271,-0.0382 0.88271,0.26743 1.04433,0.66221l0.63406,1.26075c0.22379,0.35658 0.19892,0.91691 -0.0746,1.24802l-0.59676,0.71315c-0.27352,0.33111 -0.23622,0.81503 0.08703,1.0952l1.16866,1.00605c0.32325,0.28017 0.79568,0.24196 1.0692,-0.10188l0.59676,-0.71315c0.27352,-0.33111 0.80811,-0.45846 1.19352,-0.2929l1.31785,0.43299c0.41027,0.10188 0.77082,0.52213 0.80811,0.94238l0.0746,0.92965c0.0373,0.43299 0.39784,0.75136 0.82055,0.71315l1.51677,-0.12735c0.42271,-0.0382 0.73352,-0.42025 0.69622,-0.8405l-0.0746,-0.92965c-0.0373,-0.43299 0.26108,-0.90418 0.64649,-1.06973l1.23082,-0.64948c0.34811,-0.24196 0.89514,-0.20376 1.21839,0.07641l0.69622,0.61127c0.32325,0.28017 0.80811,0.24196 1.0692,-0.10188l0.98217,-1.19708c0.27352,-0.33111 0.23622,-0.82777 -0.09946,-1.0952l-0.69622,-0.61127c-0.32325,-0.28017 -0.44757,-0.82777 -0.28595,-1.22255l0.42271,-1.3499c0.09946,-0.42025 0.50973,-0.78956 0.92001,-0.82777l0.90757,-0.07641c0.42271,-0.0382 0.73352,-0.42025 0.69622,-0.8405l-0.12433,-1.56639l0,0l0.01243,0.01273zm-9.39898,6.6476c-2.72272,0.22923 -5.10977,-1.83382 -5.33355,-4.62276c-0.22379,-2.78894 1.79028,-5.23403 4.513,-5.46326s5.10977,1.83382 5.33355,4.62276c0.22379,2.78894 -1.79028,5.23403 -4.513,5.46326z"
    }, this.pathMap.SERVICE_REST_2 = {
      d: "m10.47533,13.3295c0.15872,0 0.24691,-0.07245 0.24691,-0.21736l0,-0.6883l0.75835,0.85132s0.10582,0.05434 0.194,0.05434c0.14109,0 0.22927,-0.07245 0.24691,-0.21736c0,-0.05434 -0.01764,-0.10868 -0.07054,-0.12679l-0.56435,-0.57962c0.38799,-0.07245 0.59963,-0.2717 0.61726,-0.59773c0,-0.47094 -0.28218,-0.70641 -0.84653,-0.70641l-0.59963,0c-0.15872,0 -0.24691,0.07245 -0.24691,0.25358l0,1.75697c0,0.14491 0.08818,0.21736 0.24691,0.21736l0,0l0.01764,0zm0.24691,-1.7932l0.33509,0c0.194,0 0.29981,0.10868 0.31745,0.28981c0,0.16302 -0.10582,0.25358 -0.31745,0.2717l-0.33509,0l0,-0.56151zm2.83941,1.57584c0,-0.12679 -0.08818,-0.19924 -0.22927,-0.19924l-0.61726,0l0,-0.47094l0.54672,0c0.15872,0 0.22927,-0.07245 0.24691,-0.21736c-0.01764,-0.12679 -0.10582,-0.21736 -0.24691,-0.21736l-0.54672,0l0,-0.45283l0.59963,0c0.14109,0 0.22927,-0.07245 0.22927,-0.21736s-0.08818,-0.19924 -0.22927,-0.19924l-0.84653,0c-0.15872,0 -0.24691,0.09057 -0.24691,0.2717l0,1.73886c0,0.14491 0.08818,0.21736 0.24691,0.23547l0.86417,0c0.14109,0 0.22927,-0.07245 0.22927,-0.21736l0,-0.03623l0,-0.01811zm0.98762,-0.19924s-0.194,-0.01811 -0.33509,-0.07245c-0.07054,-0.01811 -0.15872,-0.03623 -0.22927,-0.03623c-0.14109,0 -0.21163,0.07245 -0.21163,0.21736c0,0.21736 0.28218,0.30792 0.81126,0.32604c0.54672,-0.01811 0.8289,-0.25358 0.86417,-0.70641c0,-0.32604 -0.24691,-0.56151 -0.75835,-0.70641c-0.24691,-0.07245 -0.37036,-0.14491 -0.37036,-0.23547c0,-0.12679 0.10582,-0.19924 0.28218,-0.19924c0.07054,0 0.15872,0 0.26454,0.03623c0.08818,0.01811 0.14109,0.03623 0.194,0.03623c0.14109,0 0.21163,-0.09057 0.22927,-0.23547c-0.01764,-0.18113 -0.24691,-0.28981 -0.67017,-0.30792c-0.51145,0.03623 -0.79362,0.2717 -0.8289,0.70641c0,0.28981 0.22927,0.47094 0.68781,0.59773c0.28218,0.07245 0.42327,0.16302 0.42327,0.2717c0,0.16302 -0.12345,0.25358 -0.33509,0.2717l0,0l-0.01764,0.03623zm2.04578,-1.39471l0.37036,0c0.14109,0 0.21163,-0.07245 0.22927,-0.21736c0,-0.12679 -0.08818,-0.19924 -0.22927,-0.19924l-1.25216,0c-0.12345,0 -0.194,0.07245 -0.194,0.19924c0,0.14491 0.07054,0.21736 0.194,0.21736l0.37036,0l0,1.57584c0,0.14491 0.08818,0.21736 0.24691,0.21736s0.24691,-0.07245 0.26454,-0.21736l0,-1.57584zm-4.62065,2.57207c-0.12345,-0.28981 -0.33509,-0.43472 -0.6349,-0.43472c-0.28218,0 -0.47617,0.16302 -0.59963,0.43472l-1.16398,2.8981l0,0.05434s-0.01764,0.10868 -0.01764,0.14491c0,0.23547 0.14109,0.32604 0.38799,0.32604c0.21163,0 0.35272,-0.07245 0.42327,-0.25358l0.17636,-0.50717l1.58725,0l0.15872,0.50717c0.07054,0.16302 0.21163,0.25358 0.42327,0.25358c0.24691,0 0.38799,-0.10868 0.38799,-0.32604c0,-0.05434 0,-0.12679 -0.03527,-0.19924l-1.11107,-2.8981l0.01764,0zm-1.16398,1.93811l0.54672,-1.53962l0.52908,1.53962s-1.0758,0 -1.0758,0zm4.03866,-2.30037l-1.02289,0c-0.26454,0 -0.40563,0.14491 -0.42327,0.4166l0,3.00678c0,0.25358 0.15872,0.38038 0.42327,0.38038s0.40563,-0.12679 0.42327,-0.38038l0,-0.86943l0.6349,0c0.89944,-0.05434 1.35798,-0.47094 1.42852,-1.26792c-0.05291,-0.79698 -0.54672,-1.21358 -1.44616,-1.26792l0,0l-0.01764,-0.01811zm-0.01764,1.82943l-0.58199,0l0,-1.12301l0.58199,0c0.37036,0 0.56435,0.19924 0.58199,0.56151c-0.03527,0.34415 -0.22927,0.52528 -0.58199,0.56151l0,0zm2.1516,-1.88377c-0.26454,0 -0.40563,0.14491 -0.42327,0.4166l0,3.04301c0,0.25358 0.15872,0.38038 0.42327,0.38038s0.40563,-0.12679 0.42327,-0.38038l0,-3.04301c0,-0.25358 -0.15872,-0.39849 -0.42327,-0.4166z"
    };
  }
  getStaticPath(t) {
    var n;
    return ((n = this.pathMap[t]) == null ? void 0 : n.d) || "";
  }
}
const vd = {
  bpmnRenderer: ["type", md],
  pathMap: ["type", hd]
}, gd = {
  "Copy Service Task": "抄送任务",
  "Camel Service Task": "骆驼任务",
  "Sc Service Task": "微服务任务",
  "Rest Service Task": "Rest 任务",
  "Dmn Service Task": "决策任务",
  "Http Service Task": "Http 任务",
  "Mq Service Task": "消息任务",
  "Mail Service Task": "邮件任务",
  "Shell Service Task": "Shell 任务",
  "Call activity": "调用活动",
  "Sub-process": "子流程",
  "Event sub-process": "事件子流程",
  "Sub-process (collapsed)": "子流程(折叠)",
  "Sub-process (expanded)": "子流程(展开)",
  "Ad-hoc": "临时子流程",
  "Create expanded sub-process": "创建子流程(折叠)",
  "Horizontal expanded pool/participant": "水平泳道(展开)",
  "Vertical expanded pool/participant": "垂直泳道(展开)",
  "Variable start event": "参数开始事件",
  "Variable start event (non-interrupting)": "参数开始事件(非中断)",
  "Variable boundary event": "参数边界事件",
  "Variable boundary event (non-interrupting)": "参数边界事件(非中断)",
  "Variable intermediate catch event": "中间参数捕获事件",
  "Terminate end event": "终止结束事件",
  Transaction: "事务子流程",
  "Boundary event": "边界事件",
  "Expanded pool/participant": "泳道（展开）",
  "Create element": "创建元素",
  "Append element": "追加元素",
  "Create user task": "创建用户任务",
  "Append user task": "追加用户任务",
  "Append compensation service task": "追加补偿服务任务",
  "Set as the default flow": "设为默认流",
  "Add text annotation": "添加文本注释",
  "Connect to other element": "连接到其他元素",
  Gateways: "网关",
  Tasks: "任务",
  "Sub-processes": "子流程",
  Events: "事件",
  Data: "数据对象",
  Participants: "协助",
  Delete: "删除元素",
  //   token simulation
  "Simulation Log": "模拟日志",
  "No Entries": "暂无数据",
  Started: "已启动",
  Finished: "已结束",
  "Process started": "流程启动",
  "SubProcess started": "子流程启动",
  "Process finished": "流程结束",
  "SubProcess finished": "子流程结束",
  "Process canceled": "流程取消",
  "SubProcess canceled": "子流程取消",
  "Intermediate event": "中间事件",
  "Reset Simulation": "重置状态",
  "Play/Pause Simulation": "继续/暂停",
  "Play Simulation": "开始模拟",
  "Pause Simulation": "暂停模拟",
  "Toggle Simulation Log": "模拟日志",
  "Show Simulation Log": "显示日志",
  "Hide Simulation Log": "隐藏日志"
}, Zs = "__bpmn-designer__";
function yd(e) {
  const t = window.localStorage.getItem(`${Zs}${e}`);
  return t ? JSON.parse(t) : null;
}
function Pi(e, t) {
  window.localStorage.setItem(`${Zs}${e}`, JSON.stringify(t || ""));
}
function bd(e, t) {
  return t = t || {}, yd("local-lang") !== "en_US" && (e = gd[e] || Bl[e] || e), e.replace(/{([^}]+)}/g, function(n, r) {
    return t[r] || "{" + r + "}";
  });
}
const wd = [
  {
    translate: ["value", bd]
  }
], Ed = "Flowable", Sd = "http://flowable.org/bpmn", _d = "flowable", Cd = {
  tagAlias: "lowerCase"
}, kd = [], Td = [
  {
    name: "Definitions",
    isAbstract: !0,
    extends: [
      "bpmn:Definitions"
    ],
    properties: [
      {
        name: "diagramRelationId",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "InOutBinding",
    superClass: [
      "Element"
    ],
    isAbstract: !0,
    properties: [
      {
        name: "source",
        isAttr: !0,
        type: "String"
      },
      {
        name: "sourceExpression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "target",
        isAttr: !0,
        type: "String"
      },
      {
        name: "businessKey",
        isAttr: !0,
        type: "String"
      },
      {
        name: "local",
        isAttr: !0,
        type: "Boolean",
        default: !1
      },
      {
        name: "variables",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "In",
    superClass: [
      "InOutBinding"
    ],
    meta: {
      allowedIn: [
        "bpmn:CallActivity",
        "bpmn:SignalEventDefinition"
      ]
    }
  },
  {
    name: "Out",
    superClass: [
      "InOutBinding"
    ],
    meta: {
      allowedIn: [
        "bpmn:CallActivity"
      ]
    }
  },
  {
    name: "AsyncCapable",
    isAbstract: !0,
    extends: [
      "bpmn:Activity",
      "bpmn:Gateway",
      "bpmn:Event"
    ],
    properties: [
      {
        name: "async",
        isAttr: !0,
        type: "Boolean",
        default: !1
      },
      {
        name: "asyncBefore",
        isAttr: !0,
        type: "Boolean",
        default: !1
      },
      {
        name: "asyncAfter",
        isAttr: !0,
        type: "Boolean",
        default: !1
      },
      {
        name: "exclusive",
        isAttr: !0,
        type: "Boolean",
        default: !0
      }
    ]
  },
  {
    name: "Scope",
    extends: [
      "bpmn:Signal"
    ],
    properties: [
      {
        name: "scope",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "ErrorEventDefinitionExtension",
    isAbstract: !0,
    extends: [
      "bpmn:ErrorEventDefinition"
    ],
    properties: [
      {
        name: "errorCodeVariable",
        isAttr: !0,
        type: "String"
      },
      {
        name: "errorMessageVariable",
        isAttr: !0,
        type: "String"
      },
      {
        name: "errorVariableLocalScope",
        isAttr: !0,
        type: "Boolean"
      },
      {
        name: "errorVariableTransient",
        isAttr: !0,
        type: "Boolean"
      }
    ]
  },
  {
    name: "ErrorEventDefinition",
    superClass: [
      "bpmn:ErrorEventDefinition",
      "Element"
    ],
    properties: [
      {
        name: "expression",
        isAttr: !0,
        type: "String"
      }
    ],
    meta: {
      allowedIn: [
        "bpmn:ServiceTask"
      ]
    }
  },
  {
    name: "Error",
    isAbstract: !0,
    extends: [
      "bpmn:Error"
    ],
    properties: [
      {
        name: "flowable:errorMessage",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "FormSupported",
    isAbstract: !0,
    extends: [
      "bpmn:StartEvent",
      "bpmn:UserTask"
    ],
    properties: [
      {
        name: "formKey",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "Initiator",
    isAbstract: !0,
    extends: [
      "bpmn:StartEvent"
    ],
    properties: [
      {
        name: "initiator",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "ScriptTask",
    isAbstract: !0,
    extends: [
      "bpmn:ScriptTask"
    ],
    properties: [
      {
        name: "resultVariable",
        isAttr: !0,
        type: "String"
      },
      {
        name: "autoStoreVariables",
        isAttr: !0,
        type: "Boolean"
      },
      {
        name: "resource",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "Process",
    isAbstract: !0,
    extends: [
      "bpmn:Process"
    ],
    properties: [
      {
        name: "candidateStarterGroups",
        isAttr: !0,
        type: "String"
      },
      {
        name: "candidateStarterUsers",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "FormalExpression",
    isAbstract: !0,
    extends: [
      "bpmn:FormalExpression"
    ],
    properties: [
      {
        name: "resource",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "Assignable",
    extends: [
      "bpmn:UserTask"
    ],
    properties: [
      {
        name: "assignee",
        isAttr: !0,
        type: "String"
      },
      {
        name: "candidateUsers",
        isAttr: !0,
        type: "String"
      },
      {
        name: "candidateGroups",
        isAttr: !0,
        type: "String"
      },
      {
        name: "dueDate",
        isAttr: !0,
        type: "String"
      },
      {
        name: "priority",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "CallActivity",
    extends: [
      "bpmn:CallActivity"
    ],
    properties: [
      {
        name: "inheritVariables",
        isAttr: !0,
        type: "Boolean"
      },
      {
        name: "calledElementType",
        isAttr: !0,
        type: "String"
      },
      {
        name: "processInstanceName",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "ServiceTaskLike",
    extends: [
      "bpmn:ServiceTask",
      "bpmn:BusinessRuleTask",
      "bpmn:SendTask",
      "bpmn:MessageEventDefinition"
    ],
    properties: [
      {
        name: "expression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "class",
        isAttr: !0,
        type: "String"
      },
      {
        name: "delegateExpression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "resultVariable",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "DmnCapable",
    extends: [
      "bpmn:BusinessRuleTask"
    ],
    properties: [
      {
        name: "decisionRef",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "ExternalCapable",
    extends: [
      "flowable:ServiceTaskLike"
    ],
    properties: [
      {
        name: "type",
        isAttr: !0,
        type: "String"
      },
      {
        name: "topic",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "TaskPriorized",
    extends: [
      "bpmn:Process",
      "flowable:ExternalCapable"
    ],
    properties: [
      {
        name: "taskPriority",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "Properties",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "*"
      ]
    },
    properties: [
      {
        name: "values",
        type: "Property",
        isMany: !0
      }
    ]
  },
  {
    name: "Property",
    superClass: [
      "Element"
    ],
    properties: [
      {
        name: "id",
        type: "String",
        isAttr: !0
      },
      {
        name: "name",
        type: "String",
        isAttr: !0
      },
      {
        name: "value",
        type: "String",
        isAttr: !0
      }
    ]
  },
  {
    name: "Connector",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "flowable:ServiceTaskLike"
      ]
    },
    properties: [
      {
        name: "inputOutput",
        type: "InputOutput"
      },
      {
        name: "connectorId",
        type: "String"
      }
    ]
  },
  {
    name: "InputOutput",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:FlowNode",
        "flowable:Connector"
      ]
    },
    properties: [
      {
        name: "inputOutput",
        type: "InputOutput"
      },
      {
        name: "connectorId",
        type: "String"
      },
      {
        name: "inputParameters",
        isMany: !0,
        type: "InputParameter"
      },
      {
        name: "outputParameters",
        isMany: !0,
        type: "OutputParameter"
      }
    ]
  },
  {
    name: "InputOutputParameter",
    properties: [
      {
        name: "name",
        isAttr: !0,
        type: "String"
      },
      {
        name: "value",
        isBody: !0,
        type: "String"
      },
      {
        name: "definition",
        type: "InputOutputParameterDefinition"
      }
    ]
  },
  {
    name: "InputOutputParameterDefinition",
    isAbstract: !0
  },
  {
    name: "List",
    superClass: [
      "InputOutputParameterDefinition"
    ],
    properties: [
      {
        name: "items",
        isMany: !0,
        type: "InputOutputParameterDefinition"
      }
    ]
  },
  {
    name: "Map",
    superClass: [
      "InputOutputParameterDefinition"
    ],
    properties: [
      {
        name: "entries",
        isMany: !0,
        type: "Entry"
      }
    ]
  },
  {
    name: "Entry",
    properties: [
      {
        name: "key",
        isAttr: !0,
        type: "String"
      },
      {
        name: "value",
        isBody: !0,
        type: "String"
      },
      {
        name: "definition",
        type: "InputOutputParameterDefinition"
      }
    ]
  },
  {
    name: "Value",
    superClass: [
      "Element"
    ],
    properties: [
      {
        name: "id",
        isAttr: !0,
        type: "String"
      },
      {
        name: "name",
        isAttr: !0,
        type: "String"
      },
      {
        name: "value",
        isBody: !0,
        type: "String"
      }
    ]
  },
  {
    name: "Script",
    superClass: [
      "InputOutputParameterDefinition"
    ],
    properties: [
      {
        name: "scriptFormat",
        isAttr: !0,
        type: "String"
      },
      {
        name: "resource",
        isAttr: !0,
        type: "String"
      },
      {
        name: "value",
        isBody: !0,
        type: "String"
      }
    ]
  },
  {
    name: "Field",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "flowable:ServiceTaskLike",
        "flowable:ExecutionListener",
        "flowable:TaskListener"
      ]
    },
    properties: [
      {
        name: "name",
        isAttr: !0,
        type: "String"
      },
      {
        name: "expression",
        type: "String"
      },
      {
        name: "stringValue",
        isAttr: !0,
        type: "String"
      },
      {
        name: "string",
        type: "String"
      }
    ]
  },
  {
    name: "InputParameter",
    superClass: [
      "InputOutputParameter"
    ]
  },
  {
    name: "OutputParameter",
    superClass: [
      "InputOutputParameter"
    ]
  },
  {
    name: "Collectable",
    isAbstract: !0,
    extends: [
      "bpmn:MultiInstanceLoopCharacteristics"
    ],
    superClass: [
      "flowable:AsyncCapable"
    ],
    properties: [
      {
        name: "collection",
        isAttr: !0,
        type: "String"
      },
      {
        name: "elementVariable",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "FailedJobRetryTimeCycle",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "flowable:AsyncCapable",
        "bpmn:MultiInstanceLoopCharacteristics"
      ]
    },
    properties: [
      {
        name: "body",
        isBody: !0,
        type: "String"
      }
    ]
  },
  {
    name: "ExecutionListener",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Task",
        "bpmn:ServiceTask",
        "bpmn:UserTask",
        "bpmn:BusinessRuleTask",
        "bpmn:ScriptTask",
        "bpmn:ReceiveTask",
        "bpmn:ManualTask",
        "bpmn:ExclusiveGateway",
        "bpmn:SequenceFlow",
        "bpmn:ParallelGateway",
        "bpmn:InclusiveGateway",
        "bpmn:EventBasedGateway",
        "bpmn:StartEvent",
        "bpmn:IntermediateCatchEvent",
        "bpmn:IntermediateThrowEvent",
        "bpmn:EndEvent",
        "bpmn:BoundaryEvent",
        "bpmn:CallActivity",
        "bpmn:SubProcess",
        "bpmn:Process"
      ]
    },
    properties: [
      {
        name: "expression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "class",
        isAttr: !0,
        type: "String"
      },
      {
        name: "delegateExpression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "onTransaction",
        isAttr: !0,
        type: "String"
      },
      {
        name: "event",
        isAttr: !0,
        type: "String"
      },
      {
        name: "script",
        type: "Script"
      },
      {
        name: "fields",
        type: "Field",
        isMany: !0
      }
    ]
  },
  {
    name: "TaskListener",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "expression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "class",
        isAttr: !0,
        type: "String"
      },
      {
        name: "delegateExpression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "event",
        isAttr: !0,
        type: "String"
      },
      {
        name: "script",
        type: "Script"
      },
      {
        name: "fields",
        type: "Field",
        isMany: !0
      },
      {
        name: "id",
        type: "String",
        isAttr: !0
      },
      {
        name: "eventDefinitions",
        type: "bpmn:TimerEventDefinition",
        isMany: !0
      }
    ]
  },
  {
    name: "EventListener",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Process"
      ]
    },
    properties: [
      {
        name: "events",
        isAttr: !0,
        type: "String"
      },
      {
        name: "expression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "class",
        isAttr: !0,
        type: "String"
      },
      {
        name: "delegateExpression",
        isAttr: !0,
        type: "String"
      },
      {
        name: "throwEvent",
        isAttr: !0,
        type: "String"
      },
      {
        name: "entityType",
        isAttr: !0,
        type: "String"
      },
      {
        name: "signalName",
        isAttr: !0,
        type: "String"
      },
      {
        name: "errorCode",
        isAttr: !0,
        type: "String"
      },
      {
        name: "messageName",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "FormProperty",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:StartEvent",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "id",
        type: "String",
        isAttr: !0
      },
      {
        name: "name",
        type: "String",
        isAttr: !0
      },
      {
        name: "type",
        type: "String",
        isAttr: !0
      },
      {
        name: "required",
        type: "String",
        isAttr: !0
      },
      {
        name: "readable",
        type: "String",
        isAttr: !0
      },
      {
        name: "writable",
        type: "String",
        isAttr: !0
      },
      {
        name: "variable",
        type: "String",
        isAttr: !0
      },
      {
        name: "expression",
        type: "String",
        isAttr: !0
      },
      {
        name: "datePattern",
        type: "String",
        isAttr: !0
      },
      {
        name: "default",
        type: "String",
        isAttr: !0
      },
      {
        name: "values",
        type: "Value",
        isMany: !0
      }
    ]
  },
  {
    name: "FormData",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:StartEvent",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "fields",
        type: "FormField",
        isMany: !0
      },
      {
        name: "businessKey",
        type: "String",
        isAttr: !0
      }
    ]
  },
  {
    name: "FormField",
    superClass: [
      "Element"
    ],
    properties: [
      {
        name: "id",
        type: "String",
        isAttr: !0
      },
      {
        name: "label",
        type: "String",
        isAttr: !0
      },
      {
        name: "type",
        type: "String",
        isAttr: !0
      },
      {
        name: "datePattern",
        type: "String",
        isAttr: !0
      },
      {
        name: "defaultValue",
        type: "String",
        isAttr: !0
      },
      {
        name: "properties",
        type: "Properties"
      },
      {
        name: "validation",
        type: "Validation"
      },
      {
        name: "values",
        type: "Value",
        isMany: !0
      }
    ]
  },
  {
    name: "Validation",
    superClass: [
      "Element"
    ],
    properties: [
      {
        name: "constraints",
        type: "Constraint",
        isMany: !0
      }
    ]
  },
  {
    name: "Constraint",
    superClass: [
      "Element"
    ],
    properties: [
      {
        name: "name",
        type: "String",
        isAttr: !0
      },
      {
        name: "config",
        type: "String",
        isAttr: !0
      }
    ]
  },
  {
    name: "ConditionalEventDefinitionExtension",
    isAbstract: !0,
    extends: [
      "bpmn:ConditionalEventDefinition"
    ],
    properties: [
      {
        name: "variableName",
        isAttr: !0,
        type: "String"
      },
      {
        name: "variableEvents",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "AssigneeType",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "MultiCompletionCondition",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Activity"
      ]
    },
    properties: [
      {
        name: "type",
        type: "String",
        isAttr: !0
      },
      {
        name: "conditionType",
        type: "String",
        isAttr: !0
      },
      {
        name: "num",
        type: "Number",
        isAttr: !0
      },
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "IdmAssignee",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "IdmCandidateUsers",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask",
        "bpmn:Process"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "IdmCandidateGroups",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask",
        "bpmn:Process"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "NextSequenceFlow",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "NextUser",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "ModelBpmnExtension",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "ProcessNameExp",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Process"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "NodeFormExp",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Event",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "NodeFormType",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Event",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "StaticAssigneeVariables",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:Event",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "MultiInstanceVariables",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "*"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "ServiceTask",
    extends: [
      "bpmn:ServiceTask"
    ],
    properties: [
      {
        name: "parallelInSameTransaction",
        type: "Boolean",
        isAttr: !0
      }
    ]
  },
  {
    name: "TimeDate",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:BoundaryEvent",
        "bpmn:TimerEventDefinition",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        isBody: !0,
        type: "String"
      }
    ]
  },
  {
    name: "BoundaryEvent",
    extends: [
      "bpmn:BoundaryEvent"
    ],
    properties: [
      {
        name: "timerEventDefinition",
        isBody: !0,
        type: "flowable:TimerEventDefinition"
      },
      {
        name: "cancelActivity",
        isAttr: !0,
        type: "Boolean",
        redefines: "bpmn:BoundaryEvent#cancelActivity"
      }
    ]
  },
  {
    name: "TimerEventDefinition",
    superClass: [
      "TimerEventDefinition"
    ],
    meta: {
      allowedIn: [
        "bpmn:BoundaryEvent",
        "bpmn:TimerEventDefinition",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        isBody: !0,
        type: "String"
      }
    ]
  },
  {
    name: "TimeDuration",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:BoundaryEvent",
        "bpmn:TimerEventDefinition",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        isBody: !0,
        type: "String"
      }
    ]
  },
  {
    name: "TimeCycle",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:BoundaryEvent",
        "bpmn:TimerEventDefinition",
        "flowable:endDate",
        "bpmn:UserTask"
      ]
    },
    properties: [
      {
        name: "body",
        isBody: !0,
        type: "String"
      },
      {
        name: "endDate",
        isAttr: !0,
        type: "String"
      }
    ]
  },
  {
    name: "SkipUserTask",
    extends: [
      "bpmn:UserTask"
    ],
    properties: [
      {
        name: "skipExpression",
        type: "String",
        isAttr: !0
      }
    ]
  },
  {
    name: "TransferToUsers",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "bpmn:ServiceTask"
      ]
    },
    properties: [
      {
        name: "body",
        type: "String",
        isBody: !0
      }
    ]
  },
  {
    name: "FormFieldValidation",
    extends: [
      "bpmn:UserTask",
      "bpmn:StartEvent"
    ],
    properties: [
      {
        name: "formFieldValidation",
        type: "String",
        isAttr: !0
      }
    ]
  },
  {
    name: "DataObject",
    extends: [
      "bpmn:DataObject"
    ],
    meta: {
      allowedIn: [
        "bpmn:Process",
        "bpmn:SubProcess"
      ]
    },
    properties: [
      {
        name: "itemSubjectRef",
        type: "String",
        isAttr: !0,
        redefines: "bpmn:DataObject#itemSubjectRef"
      }
    ]
  },
  {
    name: "InterruptingStartEvent",
    extends: [
      "bpmn:StartEvent"
    ],
    properties: [
      {
        name: "isInterrupting",
        isAttr: !0,
        type: "Boolean",
        redefines: "bpmn:StartEvent#isInterrupting"
      }
    ]
  },
  {
    name: "VariableListenerEventDefinition",
    superClass: [
      "Element"
    ],
    meta: {
      allowedIn: [
        "*"
      ]
    },
    properties: [
      {
        name: "variableName",
        type: "String",
        isAttr: !0
      },
      {
        name: "variableChangeType",
        type: "String",
        isAttr: !0
      }
    ]
  },
  {
    name: "TerminateEventDefinition",
    extends: [
      "bpmn:TerminateEventDefinition"
    ],
    properties: [
      {
        name: "terminateAll",
        isAttr: !0,
        type: "Boolean"
      }
    ]
  },
  {
    name: "AdHoc",
    extends: [
      "bpmn:AdHocSubProcess"
    ],
    properties: [
      {
        name: "cancelRemainingInstances",
        isAttr: !0,
        type: "Boolean",
        redefines: "bpmn:AdHocSubProcess#cancelRemainingInstances"
      }
    ]
  }
], Od = [], Qs = {
  name: Ed,
  uri: Sd,
  prefix: _d,
  xml: Cd,
  associations: kd,
  types: Td,
  emumerations: Od
}, ea = [vd, wd], Km = /* @__PURE__ */ pe({
  name: "BpmnMocker",
  __name: "index",
  props: {
    xml: {
      type: String,
      default: void 0
    },
    loading: {
      type: Boolean,
      default: !1
    },
    theme: {
      type: String,
      default: "light"
    },
    local: {
      type: String,
      default: "zh_CN"
    }
  },
  emits: ["mocker-init", "mocker-destroy"],
  setup(e, { expose: t, emit: n }) {
    const r = e, i = n, { locale: o } = fi(), s = fe(void 0), a = sn(), l = () => {
      a.value = new bs({
        container: s.value,
        moddleExtensions: {
          flowable: Qs
        },
        additionalModules: [id, ws, ...ea],
        bpmnRenderer: {
          overrideColor: !0
        },
        gridLine: { gridLineOpacity: 0.1, gridLineStroke: 1 }
      }), i("mocker-init", a.value);
    }, u = () => {
      var m, g;
      (m = a.value) == null || m.clear(), (g = a.value) == null || g.destroy(), a.value = void 0, i("mocker-destroy", a.value);
    }, c = async (m) => {
      var g, T, A, B;
      try {
        a.value || l(), await ((g = a.value) == null ? void 0 : g.importXML(m)), (T = a.value) == null || T.get("canvas").zoom("fit-viewport", "center");
        const $ = (A = a.value) == null ? void 0 : A.get("toggleMode");
        !$._active && $.toggleMode(!0);
        const f = (B = a.value) == null ? void 0 : B.get("eventBus");
        f == null || f.fire("tokenSimulation.resetSimulation");
      } catch ($) {
        console.error($);
      }
    }, p = (m) => {
      var f;
      const g = (f = a.value) == null ? void 0 : f.get("elementRegistry");
      if (!g) return;
      const T = g.filter((R) => Q(R, "bpmn:ExclusiveGateway")), A = a.value.get("simulator"), B = a.value.get("elementColors"), $ = a.value.get("simulationStyles");
      for (const R of T) {
        const v = R.outgoing.find((_) => m.indexOf(_.id) !== -1), d = "--token-simulation-grey-darken-30", h = "--token-simulation-grey-lighten-56";
        v && A.setConfig(R, { activeOutgoing: v }), R.outgoing.forEach((_) => {
          const x = m.indexOf(_.id) !== -1 ? d : h, O = $.get(x);
          B.add(_, "exclusive-gateway-settings", { stroke: O }, 2001);
        });
      }
    }, E = (m) => {
      if (m)
        return document.body.setAttribute("arco-theme", m);
      const g = document.body.getAttribute("arco-theme") === "dark";
      document.body.setAttribute("arco-theme", g ? "light" : "dark");
    }, y = (m) => {
      var g;
      m ? o.value = m : o.value = o.value === "zh_CN" ? "en_US" : "zh_CN", Pi("local-lang", o.value), (g = a.value) == null || g.get("eventBus").fire("i18n.changed");
    };
    return ft(() => {
      l(), r.xml && c(r.xml);
    }), fn(() => u()), ze(() => r.local, y, { immediate: !0 }), ze(() => r.theme, E, { immediate: !0 }), t({ createNewProcess: c, setSequenceFlows: p, toggleLang: y, toggleTheme: E }), (m, g) => (W(), ye(M(wi), {
      style: { width: "100%", height: "100%" },
      loading: e.loading
    }, {
      default: ce(() => [
        G("div", {
          ref_key: "canvasEl",
          ref: s,
          class: "bpmn-mocker"
        }, null, 512)
      ]),
      _: 1
    }, 8, ["loading"]));
  }
});
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
var xn = {
  xmlns: "http://www.w3.org/2000/svg",
  width: 24,
  height: 24,
  viewBox: "0 0 24 24",
  fill: "none",
  stroke: "currentColor",
  "stroke-width": 2,
  "stroke-linecap": "round",
  "stroke-linejoin": "round"
};
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const Ad = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const gn = (e, t) => ({ size: n, strokeWidth: r = 2, absoluteStrokeWidth: i, color: o, class: s, ...a }, { attrs: l, slots: u }) => Ki(
  "svg",
  {
    ...xn,
    width: n || xn.width,
    height: n || xn.height,
    stroke: o || xn.stroke,
    "stroke-width": i ? Number(r) * 24 / Number(n) : r,
    ...l,
    class: ["lucide", `lucide-${Ad(e)}`],
    ...a
  },
  [...t.map((c) => Ki(...c)), ...u.default ? [u.default()] : []]
);
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const Pd = gn("CircleCheckBigIcon", [
  ["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }],
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
]);
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const xd = gn("Clock4Icon", [
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
  ["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
]);
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const Dd = gn("DownloadIcon", [
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
  ["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
  ["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
]);
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const Md = gn("ZoomInIcon", [
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
  ["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
]);
/**
 * @license lucide-vue-next v0.358.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const $d = gn("ZoomOutIcon", [
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
]);
function Lo(e, t, n) {
  const r = encodeURIComponent(n);
  return {
    filename: `${t}.${e.toLowerCase()}`,
    href: `data:application/${e === "svg" ? "text/xml" : "bpmn20-xml"};charset=UTF-8,${r}`,
    data: n
  };
}
function Lr(e, t) {
  if (e && t) {
    const n = document.createElement("a");
    n.download = t, n.href = e, n.click(), URL.revokeObjectURL(n.href);
  }
}
function Ld(e) {
  const t = {
    svg: null,
    mimetype: "image/png",
    quality: 0.92,
    width: "auto",
    height: "auto",
    outputFormat: "base64"
  };
  for (const n in e)
    t[n] = e[n];
  return new Promise(function(n) {
    let r;
    if (typeof t.svg == "string") {
      const u = document.createElement("div");
      u.style.display = "none", u.innerHTML = t.svg, r = u.firstElementChild;
    } else
      r = t.svg;
    const i = document.createElement("canvas"), o = i.getContext("2d"), s = new XMLSerializer().serializeToString(r), a = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(s))), l = new Image();
    l.onload = function() {
      let u, c;
      t.width === "auto" && t.height !== "auto" ? u = l.width / l.height * t.height : t.width === "auto" ? u = l.naturalWidth : u = t.width, t.height === "auto" && t.width !== "auto" ? c = l.height / l.width * t.width : t.height === "auto" ? c = l.naturalHeight : c = t.height, i.width = u, i.height = c, o.drawImage(l, 0, 0, u, c), e.outputFormat == "blob" ? i.toBlob(
        function(p) {
          n(p);
        },
        t.mimetype,
        t.quality
      ) : n(i.toDataURL(t.mimetype, t.quality));
    }, l.src = a;
  });
}
const Id = { class: "bpmn-viewer" }, Nd = { class: "bpmn-viewer__toolbar" }, Bd = { style: { "text-align": "center", display: "inline-block", width: "40px" } }, Rd = { class: "button-list_column" }, zd = /* @__PURE__ */ pe({
  name: "BpmnViewer",
  __name: "index",
  props: {
    xml: {
      type: String,
      default: void 0
    },
    theme: {
      type: String,
      default: "light"
    },
    local: {
      type: String,
      default: "zh_CN"
    },
    translatePrefix: {
      type: String,
      default: ""
    },
    loading: {
      type: Boolean,
      default: !1
    },
    inPreset: {
      type: Boolean,
      default: !1
    },
    showDownload: {
      type: Boolean,
      default: !1
    },
    fileName: {
      type: String,
      default: ""
    }
  },
  emits: ["viewer-init", "viewer-destroy", "element-hover"],
  setup(e, { expose: t, emit: n }) {
    const r = e, i = n, { locale: o, t: s } = fi(), a = fe(void 0), l = sn(), u = {
      fill: "#C8E6C9",
      stroke: "#338136"
    }, c = {
      fill: "#FFE0B2",
      stroke: "#6B3C00"
    }, p = () => {
      l.value = new bs({
        container: a.value,
        moddleExtensions: {
          flowable: Qs
        },
        additionalModules: [
          Rl,
          ws,
          ...ea,
          {
            // 禁用滚轮滚动
            zoomScroll: ["value", ""]
          }
        ],
        gridLine: { gridLineOpacity: 0.1, gridLineStroke: 1 }
      }), l.value.on("element.hover", ({ element: P, gfx: C }) => {
        i("element-hover", P, C);
      }), l.value.on("canvas.viewbox.changed", ({ viewbox: P }) => {
        R.value = P.scale || 1;
      }), i("viewer-init", l.value);
    }, E = () => {
      var P, C;
      (P = l.value) == null || P.clear(), (C = l.value) == null || C.destroy(), l.value = void 0, i("viewer-destroy", l.value);
    }, y = () => l.value, m = (P) => P ? r.translatePrefix + P : "-", g = async (P) => {
      var C, z;
      try {
        l.value || p(), await ((C = l.value) == null ? void 0 : C.importXML(P)), (z = l.value) == null || z.get("canvas").zoom("fit-viewport", "center");
      } catch (k) {
        console.error(k);
      }
    }, T = (P) => {
      var F, U;
      const C = P.reduce(
        (Z, te) => (Z[te] = !0) && Z,
        {}
      ), z = (F = l.value) == null ? void 0 : F.get("elementRegistry");
      if (!z) return;
      const k = z.filter((Z) => C[Z.id]);
      (U = l.value) == null || U.get("modeling").setColor(k, u);
    }, A = (P) => {
      var F, U;
      const C = P.reduce(
        (Z, te) => (Z[te] = !0) && Z,
        {}
      ), z = (F = l.value) == null ? void 0 : F.get("elementRegistry");
      if (!z) return;
      const k = z.filter((Z) => C[Z.id]);
      (U = l.value) == null || U.get("modeling").setColor(k, c);
    }, B = (P) => {
      var F;
      const C = P.reduce(
        (U, Z) => (U[Z] = !0) && U,
        {}
      ), z = (F = l.value) == null ? void 0 : F.get("elementRegistry");
      if (!z) return;
      const k = l.value.get("canvas");
      z.forEach((U) => {
        if (C[U.id]) {
          const Z = U.type.split(":")[1];
          k.addMarker(U, "on-processing"), k.addMarker(U, Z);
        }
      });
    }, $ = (P) => {
      if (r.inPreset) return;
      if (P)
        return document.body.setAttribute("arco-theme", P);
      const C = document.body.getAttribute("arco-theme") === "dark";
      document.body.setAttribute("arco-theme", C ? "light" : "dark");
    }, f = (P) => {
      var C;
      r.inPreset || (P ? o.value = P : o.value = o.value === "zh_CN" ? "en_US" : "zh_CN", Pi("local-lang", o.value), (C = l.value) == null || C.get("eventBus").fire("i18n.changed"));
    }, R = fe(1), v = (P) => {
      const C = l.value.get("canvas");
      P === "fit-viewport" ? C.zoom("fit-viewport", "center") : C.zoom(P, { x: 0, y: 0 });
    }, d = (P) => {
      R.value = Math.floor(R.value * 100 - 0.1 * 100) / 100, v(R.value);
    }, h = (P) => {
      R.value = Math.floor(R.value * 100 + 0.1 * 100) / 100, v(R.value);
    }, _ = (P) => {
      function C(k) {
        const F = /var\(--([^)]+)\)/g;
        return k.replace(F, (U, Z) => z(Z) || U);
      }
      function z(k) {
        if (k.includes("color-bg"))
          return "none";
        const F = document.querySelector(".djs-container.djs-parent");
        return window.getComputedStyle(F).getPropertyValue(`--${k}`);
      }
      return C(P);
    }, x = () => {
      var z, k, F;
      const P = l.value.get("elementRegistry");
      let C = (z = P.find((U) => U.type === "bpmn:Process")) == null ? void 0 : z.businessObject;
      return C || (C = (F = (k = P.find((U) => U.type === "bpmn:Participant")) == null ? void 0 : k.businessObject) == null ? void 0 : F.processRef), (C == null ? void 0 : C.name) || (C == null ? void 0 : C.id) || "diagram";
    }, O = async (P, C) => {
      try {
        const z = C || r.fileName || x();
        if (P === "xml" || P === "bpmn") {
          const { error: k, xml: F } = await l.value.saveXML({ format: !0 });
          k && console.error(`[Process Designer Warn ]: ${k.message || k}`);
          const { href: U, filename: Z } = Lo(P.toUpperCase(), z, F);
          Lr(U, Z);
        } else if (P === "svg") {
          const { svg: k } = await l.value.saveSVG(), F = _(k), { href: U, filename: Z } = Lo("SVG", z, F);
          Lr(U, Z);
        } else
          I(z);
      } catch (z) {
        console.error(`[Process Designer Warn ]: ${z.message || z}`);
      }
    }, I = async (P) => {
      const { svg: C } = await l.value.saveSVG(), z = _(C), k = await Ld({ svg: z, outputFormat: "blob" });
      k instanceof Blob && Lr(URL.createObjectURL(k), P);
    };
    return ft(() => {
      p(), r.xml && g(r.xml);
    }), fn(() => E()), ze(() => r.theme, $, { immediate: !0 }), ze(() => r.local, f, { immediate: !0 }), t({
      createNewProcess: g,
      setPassedNodes: T,
      setActiveNodes: A,
      setProcessingMarker: B,
      getModeler: y,
      toggleLang: f,
      toggleTheme: $,
      downloadProcess: O,
      downloadProcessAsPng: I
    }), (P, C) => (W(), oe("div", Id, [
      G("div", Nd, [
        X(M(Bn), { size: "mini" }, {
          default: ce(() => [
            X(M(tn), null, {
              content: ce(() => [
                Je(re(M(s)(m("zoomOut"))), 1)
              ]),
              default: ce(() => [
                X(M(vt), {
                  onClick: C[0] || (C[0] = (z) => d())
                }, {
                  default: ce(() => [
                    X(M($d), { size: 16 })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            X(M(tn), null, {
              content: ce(() => [
                Je(re(M(s)(m("zoomReset"))), 1)
              ]),
              default: ce(() => [
                X(M(vt), {
                  onClick: C[1] || (C[1] = (z) => v("fit-viewport"))
                }, {
                  default: ce(() => [
                    G("span", Bd, re(Math.floor(R.value * 10) * 10 + "%"), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            X(M(tn), null, {
              content: ce(() => [
                Je(re(M(s)(m("zoomIn"))), 1)
              ]),
              default: ce(() => [
                X(M(vt), {
                  onClick: C[2] || (C[2] = (z) => h())
                }, {
                  default: ce(() => [
                    X(M(Md), { size: 16 })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            e.showDownload ? (W(), ye(M(tn), { key: 0 }, {
              content: ce(() => [
                G("div", Rd, [
                  X(M(vt), {
                    onClick: C[3] || (C[3] = (z) => O("bpmn"))
                  }, {
                    default: ce(() => [
                      Je(re(M(s)(m("exportAsBPMN"))), 1)
                    ]),
                    _: 1
                  }),
                  X(M(vt), {
                    onClick: C[4] || (C[4] = (z) => O("xml"))
                  }, {
                    default: ce(() => [
                      Je(re(M(s)(m("exportAsXML"))), 1)
                    ]),
                    _: 1
                  }),
                  X(M(vt), {
                    onClick: C[5] || (C[5] = (z) => O("svg"))
                  }, {
                    default: ce(() => [
                      Je(re(M(s)(m("exportAsSVG"))), 1)
                    ]),
                    _: 1
                  }),
                  X(M(vt), {
                    onClick: C[6] || (C[6] = (z) => O("png"))
                  }, {
                    default: ce(() => [
                      Je(re(M(s)(m("exportAsPNG"))), 1)
                    ]),
                    _: 1
                  })
                ])
              ]),
              default: ce(() => [
                X(M(vt), null, {
                  default: ce(() => [
                    X(M(Dd), { size: 16 })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })) : Pe("", !0)
          ]),
          _: 1
        })
      ]),
      X(M(wi), {
        style: { width: "100%", height: "100%" },
        loading: e.loading
      }, {
        default: ce(() => [
          G("div", {
            ref_key: "canvasEl",
            ref: a,
            class: "bpmn-viewer__canvas"
          }, null, 512)
        ]),
        _: 1
      }, 8, ["loading"])
    ]));
  }
});
var Ie = "top", We = "bottom", qe = "right", Ne = "left", xi = "auto", yn = [Ie, We, qe, Ne], Vt = "start", an = "end", Fd = "clippingParents", ta = "viewport", Xt = "popper", jd = "reference", Io = /* @__PURE__ */ yn.reduce(function(e, t) {
  return e.concat([t + "-" + Vt, t + "-" + an]);
}, []), na = /* @__PURE__ */ [].concat(yn, [xi]).reduce(function(e, t) {
  return e.concat([t, t + "-" + Vt, t + "-" + an]);
}, []), Vd = "beforeRead", Hd = "read", Ud = "afterRead", Wd = "beforeMain", qd = "main", Kd = "afterMain", Gd = "beforeWrite", Yd = "write", Xd = "afterWrite", Jd = [Vd, Hd, Ud, Wd, qd, Kd, Gd, Yd, Xd];
function it(e) {
  return e ? (e.nodeName || "").toLowerCase() : null;
}
function Fe(e) {
  if (e == null)
    return window;
  if (e.toString() !== "[object Window]") {
    var t = e.ownerDocument;
    return t && t.defaultView || window;
  }
  return e;
}
function xt(e) {
  var t = Fe(e).Element;
  return e instanceof t || e instanceof Element;
}
function He(e) {
  var t = Fe(e).HTMLElement;
  return e instanceof t || e instanceof HTMLElement;
}
function Di(e) {
  if (typeof ShadowRoot > "u")
    return !1;
  var t = Fe(e).ShadowRoot;
  return e instanceof t || e instanceof ShadowRoot;
}
function Zd(e) {
  var t = e.state;
  Object.keys(t.elements).forEach(function(n) {
    var r = t.styles[n] || {}, i = t.attributes[n] || {}, o = t.elements[n];
    !He(o) || !it(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(s) {
      var a = i[s];
      a === !1 ? o.removeAttribute(s) : o.setAttribute(s, a === !0 ? "" : a);
    }));
  });
}
function Qd(e) {
  var t = e.state, n = {
    popper: {
      position: t.options.strategy,
      left: "0",
      top: "0",
      margin: "0"
    },
    arrow: {
      position: "absolute"
    },
    reference: {}
  };
  return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
    Object.keys(t.elements).forEach(function(r) {
      var i = t.elements[r], o = t.attributes[r] || {}, s = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), a = s.reduce(function(l, u) {
        return l[u] = "", l;
      }, {});
      !He(i) || !it(i) || (Object.assign(i.style, a), Object.keys(o).forEach(function(l) {
        i.removeAttribute(l);
      }));
    });
  };
}
const ra = {
  name: "applyStyles",
  enabled: !0,
  phase: "write",
  fn: Zd,
  effect: Qd,
  requires: ["computeStyles"]
};
function rt(e) {
  return e.split("-")[0];
}
var Ot = Math.max, Kn = Math.min, Ht = Math.round;
function Jr() {
  var e = navigator.userAgentData;
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
    return t.brand + "/" + t.version;
  }).join(" ") : navigator.userAgent;
}
function ia() {
  return !/^((?!chrome|android).)*safari/i.test(Jr());
}
function Ut(e, t, n) {
  t === void 0 && (t = !1), n === void 0 && (n = !1);
  var r = e.getBoundingClientRect(), i = 1, o = 1;
  t && He(e) && (i = e.offsetWidth > 0 && Ht(r.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && Ht(r.height) / e.offsetHeight || 1);
  var s = xt(e) ? Fe(e) : window, a = s.visualViewport, l = !ia() && n, u = (r.left + (l && a ? a.offsetLeft : 0)) / i, c = (r.top + (l && a ? a.offsetTop : 0)) / o, p = r.width / i, E = r.height / o;
  return {
    width: p,
    height: E,
    top: c,
    right: u + p,
    bottom: c + E,
    left: u,
    x: u,
    y: c
  };
}
function Mi(e) {
  var t = Ut(e), n = e.offsetWidth, r = e.offsetHeight;
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
    x: e.offsetLeft,
    y: e.offsetTop,
    width: n,
    height: r
  };
}
function oa(e, t) {
  var n = t.getRootNode && t.getRootNode();
  if (e.contains(t))
    return !0;
  if (n && Di(n)) {
    var r = t;
    do {
      if (r && e.isSameNode(r))
        return !0;
      r = r.parentNode || r.host;
    } while (r);
  }
  return !1;
}
function dt(e) {
  return Fe(e).getComputedStyle(e);
}
function e1(e) {
  return ["table", "td", "th"].indexOf(it(e)) >= 0;
}
function Et(e) {
  return ((xt(e) ? e.ownerDocument : (
    // $FlowFixMe[prop-missing]
    e.document
  )) || window.document).documentElement;
}
function sr(e) {
  return it(e) === "html" ? e : (
    // this is a quicker (but less type safe) way to save quite some bytes from the bundle
    // $FlowFixMe[incompatible-return]
    // $FlowFixMe[prop-missing]
    e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
    e.parentNode || // DOM Element detected
    (Di(e) ? e.host : null) || // ShadowRoot detected
    // $FlowFixMe[incompatible-call]: HTMLElement is a Node
    Et(e)
  );
}
function No(e) {
  return !He(e) || // https://github.com/popperjs/popper-core/issues/837
  dt(e).position === "fixed" ? null : e.offsetParent;
}
function t1(e) {
  var t = /firefox/i.test(Jr()), n = /Trident/i.test(Jr());
  if (n && He(e)) {
    var r = dt(e);
    if (r.position === "fixed")
      return null;
  }
  var i = sr(e);
  for (Di(i) && (i = i.host); He(i) && ["html", "body"].indexOf(it(i)) < 0; ) {
    var o = dt(i);
    if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
      return i;
    i = i.parentNode;
  }
  return null;
}
function bn(e) {
  for (var t = Fe(e), n = No(e); n && e1(n) && dt(n).position === "static"; )
    n = No(n);
  return n && (it(n) === "html" || it(n) === "body" && dt(n).position === "static") ? t : n || t1(e) || t;
}
function $i(e) {
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
}
function nn(e, t, n) {
  return Ot(e, Kn(t, n));
}
function n1(e, t, n) {
  var r = nn(e, t, n);
  return r > n ? n : r;
}
function sa() {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0
  };
}
function aa(e) {
  return Object.assign({}, sa(), e);
}
function la(e, t) {
  return t.reduce(function(n, r) {
    return n[r] = e, n;
  }, {});
}
var r1 = function(t, n) {
  return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
    placement: n.placement
  })) : t, aa(typeof t != "number" ? t : la(t, yn));
};
function i1(e) {
  var t, n = e.state, r = e.name, i = e.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a = rt(n.placement), l = $i(a), u = [Ne, qe].indexOf(a) >= 0, c = u ? "height" : "width";
  if (!(!o || !s)) {
    var p = r1(i.padding, n), E = Mi(o), y = l === "y" ? Ie : Ne, m = l === "y" ? We : qe, g = n.rects.reference[c] + n.rects.reference[l] - s[l] - n.rects.popper[c], T = s[l] - n.rects.reference[l], A = bn(o), B = A ? l === "y" ? A.clientHeight || 0 : A.clientWidth || 0 : 0, $ = g / 2 - T / 2, f = p[y], R = B - E[c] - p[m], v = B / 2 - E[c] / 2 + $, d = nn(f, v, R), h = l;
    n.modifiersData[r] = (t = {}, t[h] = d, t.centerOffset = d - v, t);
  }
}
function o1(e) {
  var t = e.state, n = e.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r;
  i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || oa(t.elements.popper, i) && (t.elements.arrow = i));
}
const s1 = {
  name: "arrow",
  enabled: !0,
  phase: "main",
  fn: i1,
  effect: o1,
  requires: ["popperOffsets"],
  requiresIfExists: ["preventOverflow"]
};
function Wt(e) {
  return e.split("-")[1];
}
var a1 = {
  top: "auto",
  right: "auto",
  bottom: "auto",
  left: "auto"
};
function l1(e, t) {
  var n = e.x, r = e.y, i = t.devicePixelRatio || 1;
  return {
    x: Ht(n * i) / i || 0,
    y: Ht(r * i) / i || 0
  };
}
function Bo(e) {
  var t, n = e.popper, r = e.popperRect, i = e.placement, o = e.variation, s = e.offsets, a = e.position, l = e.gpuAcceleration, u = e.adaptive, c = e.roundOffsets, p = e.isFixed, E = s.x, y = E === void 0 ? 0 : E, m = s.y, g = m === void 0 ? 0 : m, T = typeof c == "function" ? c({
    x: y,
    y: g
  }) : {
    x: y,
    y: g
  };
  y = T.x, g = T.y;
  var A = s.hasOwnProperty("x"), B = s.hasOwnProperty("y"), $ = Ne, f = Ie, R = window;
  if (u) {
    var v = bn(n), d = "clientHeight", h = "clientWidth";
    if (v === Fe(n) && (v = Et(n), dt(v).position !== "static" && a === "absolute" && (d = "scrollHeight", h = "scrollWidth")), v = v, i === Ie || (i === Ne || i === qe) && o === an) {
      f = We;
      var _ = p && v === R && R.visualViewport ? R.visualViewport.height : (
        // $FlowFixMe[prop-missing]
        v[d]
      );
      g -= _ - r.height, g *= l ? 1 : -1;
    }
    if (i === Ne || (i === Ie || i === We) && o === an) {
      $ = qe;
      var x = p && v === R && R.visualViewport ? R.visualViewport.width : (
        // $FlowFixMe[prop-missing]
        v[h]
      );
      y -= x - r.width, y *= l ? 1 : -1;
    }
  }
  var O = Object.assign({
    position: a
  }, u && a1), I = c === !0 ? l1({
    x: y,
    y: g
  }, Fe(n)) : {
    x: y,
    y: g
  };
  if (y = I.x, g = I.y, l) {
    var P;
    return Object.assign({}, O, (P = {}, P[f] = B ? "0" : "", P[$] = A ? "0" : "", P.transform = (R.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + g + "px)" : "translate3d(" + y + "px, " + g + "px, 0)", P));
  }
  return Object.assign({}, O, (t = {}, t[f] = B ? g + "px" : "", t[$] = A ? y + "px" : "", t.transform = "", t));
}
function c1(e) {
  var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, a = n.roundOffsets, l = a === void 0 ? !0 : a, u = {
    placement: rt(t.placement),
    variation: Wt(t.placement),
    popper: t.elements.popper,
    popperRect: t.rects.popper,
    gpuAcceleration: i,
    isFixed: t.options.strategy === "fixed"
  };
  t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Bo(Object.assign({}, u, {
    offsets: t.modifiersData.popperOffsets,
    position: t.options.strategy,
    adaptive: s,
    roundOffsets: l
  })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Bo(Object.assign({}, u, {
    offsets: t.modifiersData.arrow,
    position: "absolute",
    adaptive: !1,
    roundOffsets: l
  })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
    "data-popper-placement": t.placement
  });
}
const u1 = {
  name: "computeStyles",
  enabled: !0,
  phase: "beforeWrite",
  fn: c1,
  data: {}
};
var Dn = {
  passive: !0
};
function d1(e) {
  var t = e.state, n = e.instance, r = e.options, i = r.scroll, o = i === void 0 ? !0 : i, s = r.resize, a = s === void 0 ? !0 : s, l = Fe(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
  return o && u.forEach(function(c) {
    c.addEventListener("scroll", n.update, Dn);
  }), a && l.addEventListener("resize", n.update, Dn), function() {
    o && u.forEach(function(c) {
      c.removeEventListener("scroll", n.update, Dn);
    }), a && l.removeEventListener("resize", n.update, Dn);
  };
}
const f1 = {
  name: "eventListeners",
  enabled: !0,
  phase: "write",
  fn: function() {
  },
  effect: d1,
  data: {}
};
var p1 = {
  left: "right",
  right: "left",
  bottom: "top",
  top: "bottom"
};
function zn(e) {
  return e.replace(/left|right|bottom|top/g, function(t) {
    return p1[t];
  });
}
var m1 = {
  start: "end",
  end: "start"
};
function Ro(e) {
  return e.replace(/start|end/g, function(t) {
    return m1[t];
  });
}
function Li(e) {
  var t = Fe(e), n = t.pageXOffset, r = t.pageYOffset;
  return {
    scrollLeft: n,
    scrollTop: r
  };
}
function Ii(e) {
  return Ut(Et(e)).left + Li(e).scrollLeft;
}
function h1(e, t) {
  var n = Fe(e), r = Et(e), i = n.visualViewport, o = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
  if (i) {
    o = i.width, s = i.height;
    var u = ia();
    (u || !u && t === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
  }
  return {
    width: o,
    height: s,
    x: a + Ii(e),
    y: l
  };
}
function v1(e) {
  var t, n = Et(e), r = Li(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, o = Ot(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = Ot(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -r.scrollLeft + Ii(e), l = -r.scrollTop;
  return dt(i || n).direction === "rtl" && (a += Ot(n.clientWidth, i ? i.clientWidth : 0) - o), {
    width: o,
    height: s,
    x: a,
    y: l
  };
}
function Ni(e) {
  var t = dt(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
  return /auto|scroll|overlay|hidden/.test(n + i + r);
}
function ca(e) {
  return ["html", "body", "#document"].indexOf(it(e)) >= 0 ? e.ownerDocument.body : He(e) && Ni(e) ? e : ca(sr(e));
}
function rn(e, t) {
  var n;
  t === void 0 && (t = []);
  var r = ca(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = Fe(r), s = i ? [o].concat(o.visualViewport || [], Ni(r) ? r : []) : r, a = t.concat(s);
  return i ? a : (
    // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
    a.concat(rn(sr(s)))
  );
}
function Zr(e) {
  return Object.assign({}, e, {
    left: e.x,
    top: e.y,
    right: e.x + e.width,
    bottom: e.y + e.height
  });
}
function g1(e, t) {
  var n = Ut(e, !1, t === "fixed");
  return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
}
function zo(e, t, n) {
  return t === ta ? Zr(h1(e, n)) : xt(t) ? g1(t, n) : Zr(v1(Et(e)));
}
function y1(e) {
  var t = rn(sr(e)), n = ["absolute", "fixed"].indexOf(dt(e).position) >= 0, r = n && He(e) ? bn(e) : e;
  return xt(r) ? t.filter(function(i) {
    return xt(i) && oa(i, r) && it(i) !== "body";
  }) : [];
}
function b1(e, t, n, r) {
  var i = t === "clippingParents" ? y1(e) : [].concat(t), o = [].concat(i, [n]), s = o[0], a = o.reduce(function(l, u) {
    var c = zo(e, u, r);
    return l.top = Ot(c.top, l.top), l.right = Kn(c.right, l.right), l.bottom = Kn(c.bottom, l.bottom), l.left = Ot(c.left, l.left), l;
  }, zo(e, s, r));
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
}
function ua(e) {
  var t = e.reference, n = e.element, r = e.placement, i = r ? rt(r) : null, o = r ? Wt(r) : null, s = t.x + t.width / 2 - n.width / 2, a = t.y + t.height / 2 - n.height / 2, l;
  switch (i) {
    case Ie:
      l = {
        x: s,
        y: t.y - n.height
      };
      break;
    case We:
      l = {
        x: s,
        y: t.y + t.height
      };
      break;
    case qe:
      l = {
        x: t.x + t.width,
        y: a
      };
      break;
    case Ne:
      l = {
        x: t.x - n.width,
        y: a
      };
      break;
    default:
      l = {
        x: t.x,
        y: t.y
      };
  }
  var u = i ? $i(i) : null;
  if (u != null) {
    var c = u === "y" ? "height" : "width";
    switch (o) {
      case Vt:
        l[u] = l[u] - (t[c] / 2 - n[c] / 2);
        break;
      case an:
        l[u] = l[u] + (t[c] / 2 - n[c] / 2);
        break;
    }
  }
  return l;
}
function ln(e, t) {
  t === void 0 && (t = {});
  var n = t, r = n.placement, i = r === void 0 ? e.placement : r, o = n.strategy, s = o === void 0 ? e.strategy : o, a = n.boundary, l = a === void 0 ? Fd : a, u = n.rootBoundary, c = u === void 0 ? ta : u, p = n.elementContext, E = p === void 0 ? Xt : p, y = n.altBoundary, m = y === void 0 ? !1 : y, g = n.padding, T = g === void 0 ? 0 : g, A = aa(typeof T != "number" ? T : la(T, yn)), B = E === Xt ? jd : Xt, $ = e.rects.popper, f = e.elements[m ? B : E], R = b1(xt(f) ? f : f.contextElement || Et(e.elements.popper), l, c, s), v = Ut(e.elements.reference), d = ua({
    reference: v,
    element: $,
    strategy: "absolute",
    placement: i
  }), h = Zr(Object.assign({}, $, d)), _ = E === Xt ? h : v, x = {
    top: R.top - _.top + A.top,
    bottom: _.bottom - R.bottom + A.bottom,
    left: R.left - _.left + A.left,
    right: _.right - R.right + A.right
  }, O = e.modifiersData.offset;
  if (E === Xt && O) {
    var I = O[i];
    Object.keys(x).forEach(function(P) {
      var C = [qe, We].indexOf(P) >= 0 ? 1 : -1, z = [Ie, We].indexOf(P) >= 0 ? "y" : "x";
      x[P] += I[z] * C;
    });
  }
  return x;
}
function w1(e, t) {
  t === void 0 && (t = {});
  var n = t, r = n.placement, i = n.boundary, o = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? na : l, c = Wt(r), p = c ? a ? Io : Io.filter(function(m) {
    return Wt(m) === c;
  }) : yn, E = p.filter(function(m) {
    return u.indexOf(m) >= 0;
  });
  E.length === 0 && (E = p);
  var y = E.reduce(function(m, g) {
    return m[g] = ln(e, {
      placement: g,
      boundary: i,
      rootBoundary: o,
      padding: s
    })[rt(g)], m;
  }, {});
  return Object.keys(y).sort(function(m, g) {
    return y[m] - y[g];
  });
}
function E1(e) {
  if (rt(e) === xi)
    return [];
  var t = zn(e);
  return [Ro(e), t, Ro(t)];
}
function S1(e) {
  var t = e.state, n = e.options, r = e.name;
  if (!t.modifiersData[r]._skip) {
    for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, p = n.rootBoundary, E = n.altBoundary, y = n.flipVariations, m = y === void 0 ? !0 : y, g = n.allowedAutoPlacements, T = t.options.placement, A = rt(T), B = A === T, $ = l || (B || !m ? [zn(T)] : E1(T)), f = [T].concat($).reduce(function(Ee, Se) {
      return Ee.concat(rt(Se) === xi ? w1(t, {
        placement: Se,
        boundary: c,
        rootBoundary: p,
        padding: u,
        flipVariations: m,
        allowedAutoPlacements: g
      }) : Se);
    }, []), R = t.rects.reference, v = t.rects.popper, d = /* @__PURE__ */ new Map(), h = !0, _ = f[0], x = 0; x < f.length; x++) {
      var O = f[x], I = rt(O), P = Wt(O) === Vt, C = [Ie, We].indexOf(I) >= 0, z = C ? "width" : "height", k = ln(t, {
        placement: O,
        boundary: c,
        rootBoundary: p,
        altBoundary: E,
        padding: u
      }), F = C ? P ? qe : Ne : P ? We : Ie;
      R[z] > v[z] && (F = zn(F));
      var U = zn(F), Z = [];
      if (o && Z.push(k[I] <= 0), a && Z.push(k[F] <= 0, k[U] <= 0), Z.every(function(Ee) {
        return Ee;
      })) {
        _ = O, h = !1;
        break;
      }
      d.set(O, Z);
    }
    if (h)
      for (var te = m ? 3 : 1, we = function(Se) {
        var De = f.find(function(Ge) {
          var Te = d.get(Ge);
          if (Te)
            return Te.slice(0, Se).every(function(Ye) {
              return Ye;
            });
        });
        if (De)
          return _ = De, "break";
      }, ve = te; ve > 0; ve--) {
        var ke = we(ve);
        if (ke === "break") break;
      }
    t.placement !== _ && (t.modifiersData[r]._skip = !0, t.placement = _, t.reset = !0);
  }
}
const _1 = {
  name: "flip",
  enabled: !0,
  phase: "main",
  fn: S1,
  requiresIfExists: ["offset"],
  data: {
    _skip: !1
  }
};
function Fo(e, t, n) {
  return n === void 0 && (n = {
    x: 0,
    y: 0
  }), {
    top: e.top - t.height - n.y,
    right: e.right - t.width + n.x,
    bottom: e.bottom - t.height + n.y,
    left: e.left - t.width - n.x
  };
}
function jo(e) {
  return [Ie, qe, We, Ne].some(function(t) {
    return e[t] >= 0;
  });
}
function C1(e) {
  var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, o = t.modifiersData.preventOverflow, s = ln(t, {
    elementContext: "reference"
  }), a = ln(t, {
    altBoundary: !0
  }), l = Fo(s, r), u = Fo(a, i, o), c = jo(l), p = jo(u);
  t.modifiersData[n] = {
    referenceClippingOffsets: l,
    popperEscapeOffsets: u,
    isReferenceHidden: c,
    hasPopperEscaped: p
  }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
    "data-popper-reference-hidden": c,
    "data-popper-escaped": p
  });
}
const k1 = {
  name: "hide",
  enabled: !0,
  phase: "main",
  requiresIfExists: ["preventOverflow"],
  fn: C1
};
function T1(e, t, n) {
  var r = rt(e), i = [Ne, Ie].indexOf(r) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, t, {
    placement: e
  })) : n, s = o[0], a = o[1];
  return s = s || 0, a = (a || 0) * i, [Ne, qe].indexOf(r) >= 0 ? {
    x: a,
    y: s
  } : {
    x: s,
    y: a
  };
}
function O1(e) {
  var t = e.state, n = e.options, r = e.name, i = n.offset, o = i === void 0 ? [0, 0] : i, s = na.reduce(function(c, p) {
    return c[p] = T1(p, t.rects, o), c;
  }, {}), a = s[t.placement], l = a.x, u = a.y;
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += u), t.modifiersData[r] = s;
}
const A1 = {
  name: "offset",
  enabled: !0,
  phase: "main",
  requires: ["popperOffsets"],
  fn: O1
};
function P1(e) {
  var t = e.state, n = e.name;
  t.modifiersData[n] = ua({
    reference: t.rects.reference,
    element: t.rects.popper,
    strategy: "absolute",
    placement: t.placement
  });
}
const x1 = {
  name: "popperOffsets",
  enabled: !0,
  phase: "read",
  fn: P1,
  data: {}
};
function D1(e) {
  return e === "x" ? "y" : "x";
}
function M1(e) {
  var t = e.state, n = e.options, r = e.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, p = n.padding, E = n.tether, y = E === void 0 ? !0 : E, m = n.tetherOffset, g = m === void 0 ? 0 : m, T = ln(t, {
    boundary: l,
    rootBoundary: u,
    padding: p,
    altBoundary: c
  }), A = rt(t.placement), B = Wt(t.placement), $ = !B, f = $i(A), R = D1(f), v = t.modifiersData.popperOffsets, d = t.rects.reference, h = t.rects.popper, _ = typeof g == "function" ? g(Object.assign({}, t.rects, {
    placement: t.placement
  })) : g, x = typeof _ == "number" ? {
    mainAxis: _,
    altAxis: _
  } : Object.assign({
    mainAxis: 0,
    altAxis: 0
  }, _), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I = {
    x: 0,
    y: 0
  };
  if (v) {
    if (o) {
      var P, C = f === "y" ? Ie : Ne, z = f === "y" ? We : qe, k = f === "y" ? "height" : "width", F = v[f], U = F + T[C], Z = F - T[z], te = y ? -h[k] / 2 : 0, we = B === Vt ? d[k] : h[k], ve = B === Vt ? -h[k] : -d[k], ke = t.elements.arrow, Ee = y && ke ? Mi(ke) : {
        width: 0,
        height: 0
      }, Se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : sa(), De = Se[C], Ge = Se[z], Te = nn(0, d[k], Ee[k]), Ye = $ ? d[k] / 2 - te - Te - De - x.mainAxis : we - Te - De - x.mainAxis, b = $ ? -d[k] / 2 + te + Te + Ge + x.mainAxis : ve + Te + Ge + x.mainAxis, L = t.elements.arrow && bn(t.elements.arrow), N = L ? f === "y" ? L.clientTop || 0 : L.clientLeft || 0 : 0, K = (P = O == null ? void 0 : O[f]) != null ? P : 0, H = F + Ye - K - N, j = F + b - K, ne = nn(y ? Kn(U, H) : U, F, y ? Ot(Z, j) : Z);
      v[f] = ne, I[f] = ne - F;
    }
    if (a) {
      var ae, _e = f === "x" ? Ie : Ne, ot = f === "x" ? We : qe, he = v[R], de = R === "y" ? "height" : "width", _t = he + T[_e], Xe = he - T[ot], et = [Ie, Ne].indexOf(A) !== -1, Ct = (ae = O == null ? void 0 : O[R]) != null ? ae : 0, Mt = et ? _t : he - d[de] - h[de] - Ct + x.altAxis, $t = et ? he + d[de] + h[de] - Ct - x.altAxis : Xe, D = y && et ? n1(Mt, he, $t) : nn(y ? Mt : _t, he, y ? $t : Xe);
      v[R] = D, I[R] = D - he;
    }
    t.modifiersData[r] = I;
  }
}
const $1 = {
  name: "preventOverflow",
  enabled: !0,
  phase: "main",
  fn: M1,
  requiresIfExists: ["offset"]
};
function L1(e) {
  return {
    scrollLeft: e.scrollLeft,
    scrollTop: e.scrollTop
  };
}
function I1(e) {
  return e === Fe(e) || !He(e) ? Li(e) : L1(e);
}
function N1(e) {
  var t = e.getBoundingClientRect(), n = Ht(t.width) / e.offsetWidth || 1, r = Ht(t.height) / e.offsetHeight || 1;
  return n !== 1 || r !== 1;
}
function B1(e, t, n) {
  n === void 0 && (n = !1);
  var r = He(t), i = He(t) && N1(t), o = Et(t), s = Ut(e, i, n), a = {
    scrollLeft: 0,
    scrollTop: 0
  }, l = {
    x: 0,
    y: 0
  };
  return (r || !r && !n) && ((it(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
  Ni(o)) && (a = I1(t)), He(t) ? (l = Ut(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : o && (l.x = Ii(o))), {
    x: s.left + a.scrollLeft - l.x,
    y: s.top + a.scrollTop - l.y,
    width: s.width,
    height: s.height
  };
}
function R1(e) {
  var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
  e.forEach(function(o) {
    t.set(o.name, o);
  });
  function i(o) {
    n.add(o.name);
    var s = [].concat(o.requires || [], o.requiresIfExists || []);
    s.forEach(function(a) {
      if (!n.has(a)) {
        var l = t.get(a);
        l && i(l);
      }
    }), r.push(o);
  }
  return e.forEach(function(o) {
    n.has(o.name) || i(o);
  }), r;
}
function z1(e) {
  var t = R1(e);
  return Jd.reduce(function(n, r) {
    return n.concat(t.filter(function(i) {
      return i.phase === r;
    }));
  }, []);
}
function F1(e) {
  var t;
  return function() {
    return t || (t = new Promise(function(n) {
      Promise.resolve().then(function() {
        t = void 0, n(e());
      });
    })), t;
  };
}
function j1(e) {
  var t = e.reduce(function(n, r) {
    var i = n[r.name];
    return n[r.name] = i ? Object.assign({}, i, r, {
      options: Object.assign({}, i.options, r.options),
      data: Object.assign({}, i.data, r.data)
    }) : r, n;
  }, {});
  return Object.keys(t).map(function(n) {
    return t[n];
  });
}
var Vo = {
  placement: "bottom",
  modifiers: [],
  strategy: "absolute"
};
function Ho() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  return !t.some(function(r) {
    return !(r && typeof r.getBoundingClientRect == "function");
  });
}
function V1(e) {
  e === void 0 && (e = {});
  var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, o = i === void 0 ? Vo : i;
  return function(a, l, u) {
    u === void 0 && (u = o);
    var c = {
      placement: "bottom",
      orderedModifiers: [],
      options: Object.assign({}, Vo, o),
      modifiersData: {},
      elements: {
        reference: a,
        popper: l
      },
      attributes: {},
      styles: {}
    }, p = [], E = !1, y = {
      state: c,
      setOptions: function(A) {
        var B = typeof A == "function" ? A(c.options) : A;
        g(), c.options = Object.assign({}, o, c.options, B), c.scrollParents = {
          reference: xt(a) ? rn(a) : a.contextElement ? rn(a.contextElement) : [],
          popper: rn(l)
        };
        var $ = z1(j1([].concat(r, c.options.modifiers)));
        return c.orderedModifiers = $.filter(function(f) {
          return f.enabled;
        }), m(), y.update();
      },
      // Sync update – it will always be executed, even if not necessary. This
      // is useful for low frequency updates where sync behavior simplifies the
      // logic.
      // For high frequency updates (e.g. `resize` and `scroll` events), always
      // prefer the async Popper#update method
      forceUpdate: function() {
        if (!E) {
          var A = c.elements, B = A.reference, $ = A.popper;
          if (Ho(B, $)) {
            c.rects = {
              reference: B1(B, bn($), c.options.strategy === "fixed"),
              popper: Mi($)
            }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(x) {
              return c.modifiersData[x.name] = Object.assign({}, x.data);
            });
            for (var f = 0; f < c.orderedModifiers.length; f++) {
              if (c.reset === !0) {
                c.reset = !1, f = -1;
                continue;
              }
              var R = c.orderedModifiers[f], v = R.fn, d = R.options, h = d === void 0 ? {} : d, _ = R.name;
              typeof v == "function" && (c = v({
                state: c,
                options: h,
                name: _,
                instance: y
              }) || c);
            }
          }
        }
      },
      // Async and optimistically optimized update – it will not be executed if
      // not necessary (debounced to run at most once-per-tick)
      update: F1(function() {
        return new Promise(function(T) {
          y.forceUpdate(), T(c);
        });
      }),
      destroy: function() {
        g(), E = !0;
      }
    };
    if (!Ho(a, l))
      return y;
    y.setOptions(u).then(function(T) {
      !E && u.onFirstUpdate && u.onFirstUpdate(T);
    });
    function m() {
      c.orderedModifiers.forEach(function(T) {
        var A = T.name, B = T.options, $ = B === void 0 ? {} : B, f = T.effect;
        if (typeof f == "function") {
          var R = f({
            state: c,
            name: A,
            instance: y,
            options: $
          }), v = function() {
          };
          p.push(R || v);
        }
      });
    }
    function g() {
      p.forEach(function(T) {
        return T();
      }), p = [];
    }
    return y;
  };
}
var H1 = [f1, x1, u1, ra, A1, _1, $1, s1, k1], U1 = /* @__PURE__ */ V1({
  defaultModifiers: H1
}), W1 = "tippy-box", da = "tippy-content", q1 = "tippy-backdrop", fa = "tippy-arrow", pa = "tippy-svg-arrow", Tt = {
  passive: !0,
  capture: !0
}, ma = function() {
  return document.body;
};
function K1(e, t) {
  return {}.hasOwnProperty.call(e, t);
}
function Ir(e, t, n) {
  if (Array.isArray(e)) {
    var r = e[t];
    return r ?? (Array.isArray(n) ? n[t] : n);
  }
  return e;
}
function Bi(e, t) {
  var n = {}.toString.call(e);
  return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
}
function ha(e, t) {
  return typeof e == "function" ? e.apply(void 0, t) : e;
}
function Uo(e, t) {
  if (t === 0)
    return e;
  var n;
  return function(r) {
    clearTimeout(n), n = setTimeout(function() {
      e(r);
    }, t);
  };
}
function G1(e, t) {
  var n = Object.assign({}, e);
  return t.forEach(function(r) {
    delete n[r];
  }), n;
}
function Y1(e) {
  return e.split(/\s+/).filter(Boolean);
}
function Rt(e) {
  return [].concat(e);
}
function Wo(e, t) {
  e.indexOf(t) === -1 && e.push(t);
}
function X1(e) {
  return e.filter(function(t, n) {
    return e.indexOf(t) === n;
  });
}
function J1(e) {
  return e.split("-")[0];
}
function Gn(e) {
  return [].slice.call(e);
}
function qo(e) {
  return Object.keys(e).reduce(function(t, n) {
    return e[n] !== void 0 && (t[n] = e[n]), t;
  }, {});
}
function on() {
  return document.createElement("div");
}
function cn(e) {
  return ["Element", "Fragment"].some(function(t) {
    return Bi(e, t);
  });
}
function Z1(e) {
  return Bi(e, "NodeList");
}
function va(e) {
  return Bi(e, "MouseEvent");
}
function Q1(e) {
  return !!(e && e._tippy && e._tippy.reference === e);
}
function ef(e) {
  return cn(e) ? [e] : Z1(e) ? Gn(e) : Array.isArray(e) ? e : Gn(document.querySelectorAll(e));
}
function Nr(e, t) {
  e.forEach(function(n) {
    n && (n.style.transitionDuration = t + "ms");
  });
}
function Ko(e, t) {
  e.forEach(function(n) {
    n && n.setAttribute("data-state", t);
  });
}
function ga(e) {
  var t, n = Rt(e), r = n[0];
  return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
}
function tf(e, t) {
  var n = t.clientX, r = t.clientY;
  return e.every(function(i) {
    var o = i.popperRect, s = i.popperState, a = i.props, l = a.interactiveBorder, u = J1(s.placement), c = s.modifiersData.offset;
    if (!c)
      return !0;
    var p = u === "bottom" ? c.top.y : 0, E = u === "top" ? c.bottom.y : 0, y = u === "right" ? c.left.x : 0, m = u === "left" ? c.right.x : 0, g = o.top - r + p > l, T = r - o.bottom - E > l, A = o.left - n + y > l, B = n - o.right - m > l;
    return g || T || A || B;
  });
}
function Br(e, t, n) {
  var r = t + "EventListener";
  ["transitionend", "webkitTransitionEnd"].forEach(function(i) {
    e[r](i, n);
  });
}
function Go(e, t) {
  for (var n = t; n; ) {
    var r;
    if (e.contains(n))
      return !0;
    n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
  }
  return !1;
}
var nt = {
  isTouch: !1
}, Yo = 0;
function nf() {
  nt.isTouch || (nt.isTouch = !0, window.performance && document.addEventListener("mousemove", ya));
}
function ya() {
  var e = performance.now();
  e - Yo < 20 && (nt.isTouch = !1, document.removeEventListener("mousemove", ya)), Yo = e;
}
function rf() {
  var e = document.activeElement;
  if (Q1(e)) {
    var t = e._tippy;
    e.blur && !t.state.isVisible && e.blur();
  }
}
function of() {
  document.addEventListener("touchstart", nf, Tt), window.addEventListener("blur", rf);
}
var sf = typeof window < "u" && typeof document < "u", af = sf ? (
  // @ts-ignore
  !!window.msCrypto
) : !1;
function Nt(e) {
  var t = e === "destroy" ? "n already-" : " ";
  return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
}
function Xo(e) {
  var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
  return e.replace(t, " ").replace(n, "").trim();
}
function lf(e) {
  return Xo(`
  %ctippy.js

  %c` + Xo(e) + `

  %c👷‍ This is a development-only message. It will be removed in production.
  `);
}
function ba(e) {
  return [
    lf(e),
    // title
    "color: #00C584; font-size: 1.3em; font-weight: bold;",
    // message
    "line-height: 1.5",
    // footer
    "color: #a6a095;"
  ];
}
var un;
process.env.NODE_ENV !== "production" && cf();
function cf() {
  un = /* @__PURE__ */ new Set();
}
function at(e, t) {
  if (e && !un.has(t)) {
    var n;
    un.add(t), (n = console).warn.apply(n, ba(t));
  }
}
function Qr(e, t) {
  if (e && !un.has(t)) {
    var n;
    un.add(t), (n = console).error.apply(n, ba(t));
  }
}
function uf(e) {
  var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
  Qr(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Qr(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
}
var wa = {
  animateFill: !1,
  followCursor: !1,
  inlinePositioning: !1,
  sticky: !1
}, df = {
  allowHTML: !1,
  animation: "fade",
  arrow: !0,
  content: "",
  inertia: !1,
  maxWidth: 350,
  role: "tooltip",
  theme: "",
  zIndex: 9999
}, Re = Object.assign({
  appendTo: ma,
  aria: {
    content: "auto",
    expanded: "auto"
  },
  delay: 0,
  duration: [300, 250],
  getReferenceClientRect: null,
  hideOnClick: !0,
  ignoreAttributes: !1,
  interactive: !1,
  interactiveBorder: 2,
  interactiveDebounce: 0,
  moveTransition: "",
  offset: [0, 10],
  onAfterUpdate: function() {
  },
  onBeforeUpdate: function() {
  },
  onCreate: function() {
  },
  onDestroy: function() {
  },
  onHidden: function() {
  },
  onHide: function() {
  },
  onMount: function() {
  },
  onShow: function() {
  },
  onShown: function() {
  },
  onTrigger: function() {
  },
  onUntrigger: function() {
  },
  onClickOutside: function() {
  },
  placement: "top",
  plugins: [],
  popperOptions: {},
  render: null,
  showOnCreate: !1,
  touch: !0,
  trigger: "mouseenter focus",
  triggerTarget: null
}, wa, df), ff = Object.keys(Re), pf = function(t) {
  process.env.NODE_ENV !== "production" && Sa(t, []);
  var n = Object.keys(t);
  n.forEach(function(r) {
    Re[r] = t[r];
  });
};
function Ea(e) {
  var t = e.plugins || [], n = t.reduce(function(r, i) {
    var o = i.name, s = i.defaultValue;
    if (o) {
      var a;
      r[o] = e[o] !== void 0 ? e[o] : (a = Re[o]) != null ? a : s;
    }
    return r;
  }, {});
  return Object.assign({}, e, n);
}
function mf(e, t) {
  var n = t ? Object.keys(Ea(Object.assign({}, Re, {
    plugins: t
  }))) : ff, r = n.reduce(function(i, o) {
    var s = (e.getAttribute("data-tippy-" + o) || "").trim();
    if (!s)
      return i;
    if (o === "content")
      i[o] = s;
    else
      try {
        i[o] = JSON.parse(s);
      } catch {
        i[o] = s;
      }
    return i;
  }, {});
  return r;
}
function Jo(e, t) {
  var n = Object.assign({}, t, {
    content: ha(t.content, [e])
  }, t.ignoreAttributes ? {} : mf(e, t.plugins));
  return n.aria = Object.assign({}, Re.aria, n.aria), n.aria = {
    expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
    content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
  }, n;
}
function Sa(e, t) {
  e === void 0 && (e = {}), t === void 0 && (t = []);
  var n = Object.keys(e);
  n.forEach(function(r) {
    var i = G1(Re, Object.keys(wa)), o = !K1(i, r);
    o && (o = t.filter(function(s) {
      return s.name === r;
    }).length === 0), at(o, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `

`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
  });
}
var hf = function() {
  return "innerHTML";
};
function ei(e, t) {
  e[hf()] = t;
}
function Zo(e) {
  var t = on();
  return e === !0 ? t.className = fa : (t.className = pa, cn(e) ? t.appendChild(e) : ei(t, e)), t;
}
function Qo(e, t) {
  cn(t.content) ? (ei(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? ei(e, t.content) : e.textContent = t.content);
}
function ti(e) {
  var t = e.firstElementChild, n = Gn(t.children);
  return {
    box: t,
    content: n.find(function(r) {
      return r.classList.contains(da);
    }),
    arrow: n.find(function(r) {
      return r.classList.contains(fa) || r.classList.contains(pa);
    }),
    backdrop: n.find(function(r) {
      return r.classList.contains(q1);
    })
  };
}
function _a(e) {
  var t = on(), n = on();
  n.className = W1, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
  var r = on();
  r.className = da, r.setAttribute("data-state", "hidden"), Qo(r, e.props), t.appendChild(n), n.appendChild(r), i(e.props, e.props);
  function i(o, s) {
    var a = ti(t), l = a.box, u = a.content, c = a.arrow;
    s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) && Qo(u, e.props), s.arrow ? c ? o.arrow !== s.arrow && (l.removeChild(c), l.appendChild(Zo(s.arrow))) : l.appendChild(Zo(s.arrow)) : c && l.removeChild(c);
  }
  return {
    popper: t,
    onUpdate: i
  };
}
_a.$$tippy = !0;
var vf = 1, Mn = [], Rr = [];
function gf(e, t) {
  var n = Jo(e, Object.assign({}, Re, Ea(qo(t)))), r, i, o, s = !1, a = !1, l = !1, u = !1, c, p, E, y = [], m = Uo(H, n.interactiveDebounce), g, T = vf++, A = null, B = X1(n.plugins), $ = {
    // Is the instance currently enabled?
    isEnabled: !0,
    // Is the tippy currently showing and not transitioning out?
    isVisible: !1,
    // Has the instance been destroyed?
    isDestroyed: !1,
    // Is the tippy currently mounted to the DOM?
    isMounted: !1,
    // Has the tippy finished transitioning in?
    isShown: !1
  }, f = {
    // properties
    id: T,
    reference: e,
    popper: on(),
    popperInstance: A,
    props: n,
    state: $,
    plugins: B,
    // methods
    clearDelayTimeouts: Mt,
    setProps: $t,
    setContent: D,
    show: Y,
    hide: Oe,
    hideWithInteractivity: mt,
    enable: et,
    disable: Ct,
    unmount: st,
    destroy: ht
  };
  if (!n.render)
    return process.env.NODE_ENV !== "production" && Qr(!0, "render() function has not been supplied."), f;
  var R = n.render(f), v = R.popper, d = R.onUpdate;
  v.setAttribute("data-tippy-root", ""), v.id = "tippy-" + f.id, f.popper = v, e._tippy = f, v._tippy = f;
  var h = B.map(function(S) {
    return S.fn(f);
  }), _ = e.hasAttribute("aria-expanded");
  return L(), te(), F(), U("onCreate", [f]), n.showOnCreate && _t(), v.addEventListener("mouseenter", function() {
    f.props.interactive && f.state.isVisible && f.clearDelayTimeouts();
  }), v.addEventListener("mouseleave", function() {
    f.props.interactive && f.props.trigger.indexOf("mouseenter") >= 0 && C().addEventListener("mousemove", m);
  }), f;
  function x() {
    var S = f.props.touch;
    return Array.isArray(S) ? S : [S, 0];
  }
  function O() {
    return x()[0] === "hold";
  }
  function I() {
    var S;
    return !!((S = f.props.render) != null && S.$$tippy);
  }
  function P() {
    return g || e;
  }
  function C() {
    var S = P().parentNode;
    return S ? ga(S) : document;
  }
  function z() {
    return ti(v);
  }
  function k(S) {
    return f.state.isMounted && !f.state.isVisible || nt.isTouch || c && c.type === "focus" ? 0 : Ir(f.props.delay, S ? 0 : 1, Re.delay);
  }
  function F(S) {
    S === void 0 && (S = !1), v.style.pointerEvents = f.props.interactive && !S ? "" : "none", v.style.zIndex = "" + f.props.zIndex;
  }
  function U(S, V, J) {
    if (J === void 0 && (J = !0), h.forEach(function(se) {
      se[S] && se[S].apply(se, V);
    }), J) {
      var ue;
      (ue = f.props)[S].apply(ue, V);
    }
  }
  function Z() {
    var S = f.props.aria;
    if (S.content) {
      var V = "aria-" + S.content, J = v.id, ue = Rt(f.props.triggerTarget || e);
      ue.forEach(function(se) {
        var Me = se.getAttribute(V);
        if (f.state.isVisible)
          se.setAttribute(V, Me ? Me + " " + J : J);
        else {
          var je = Me && Me.replace(J, "").trim();
          je ? se.setAttribute(V, je) : se.removeAttribute(V);
        }
      });
    }
  }
  function te() {
    if (!(_ || !f.props.aria.expanded)) {
      var S = Rt(f.props.triggerTarget || e);
      S.forEach(function(V) {
        f.props.interactive ? V.setAttribute("aria-expanded", f.state.isVisible && V === P() ? "true" : "false") : V.removeAttribute("aria-expanded");
      });
    }
  }
  function we() {
    C().removeEventListener("mousemove", m), Mn = Mn.filter(function(S) {
      return S !== m;
    });
  }
  function ve(S) {
    if (!(nt.isTouch && (l || S.type === "mousedown"))) {
      var V = S.composedPath && S.composedPath()[0] || S.target;
      if (!(f.props.interactive && Go(v, V))) {
        if (Rt(f.props.triggerTarget || e).some(function(J) {
          return Go(J, V);
        })) {
          if (nt.isTouch || f.state.isVisible && f.props.trigger.indexOf("click") >= 0)
            return;
        } else
          U("onClickOutside", [f, S]);
        f.props.hideOnClick === !0 && (f.clearDelayTimeouts(), f.hide(), a = !0, setTimeout(function() {
          a = !1;
        }), f.state.isMounted || De());
      }
    }
  }
  function ke() {
    l = !0;
  }
  function Ee() {
    l = !1;
  }
  function Se() {
    var S = C();
    S.addEventListener("mousedown", ve, !0), S.addEventListener("touchend", ve, Tt), S.addEventListener("touchstart", Ee, Tt), S.addEventListener("touchmove", ke, Tt);
  }
  function De() {
    var S = C();
    S.removeEventListener("mousedown", ve, !0), S.removeEventListener("touchend", ve, Tt), S.removeEventListener("touchstart", Ee, Tt), S.removeEventListener("touchmove", ke, Tt);
  }
  function Ge(S, V) {
    Ye(S, function() {
      !f.state.isVisible && v.parentNode && v.parentNode.contains(v) && V();
    });
  }
  function Te(S, V) {
    Ye(S, V);
  }
  function Ye(S, V) {
    var J = z().box;
    function ue(se) {
      se.target === J && (Br(J, "remove", ue), V());
    }
    if (S === 0)
      return V();
    Br(J, "remove", p), Br(J, "add", ue), p = ue;
  }
  function b(S, V, J) {
    J === void 0 && (J = !1);
    var ue = Rt(f.props.triggerTarget || e);
    ue.forEach(function(se) {
      se.addEventListener(S, V, J), y.push({
        node: se,
        eventType: S,
        handler: V,
        options: J
      });
    });
  }
  function L() {
    O() && (b("touchstart", K, {
      passive: !0
    }), b("touchend", j, {
      passive: !0
    })), Y1(f.props.trigger).forEach(function(S) {
      if (S !== "manual")
        switch (b(S, K), S) {
          case "mouseenter":
            b("mouseleave", j);
            break;
          case "focus":
            b(af ? "focusout" : "blur", ne);
            break;
          case "focusin":
            b("focusout", ne);
            break;
        }
    });
  }
  function N() {
    y.forEach(function(S) {
      var V = S.node, J = S.eventType, ue = S.handler, se = S.options;
      V.removeEventListener(J, ue, se);
    }), y = [];
  }
  function K(S) {
    var V, J = !1;
    if (!(!f.state.isEnabled || ae(S) || a)) {
      var ue = ((V = c) == null ? void 0 : V.type) === "focus";
      c = S, g = S.currentTarget, te(), !f.state.isVisible && va(S) && Mn.forEach(function(se) {
        return se(S);
      }), S.type === "click" && (f.props.trigger.indexOf("mouseenter") < 0 || s) && f.props.hideOnClick !== !1 && f.state.isVisible ? J = !0 : _t(S), S.type === "click" && (s = !J), J && !ue && Xe(S);
    }
  }
  function H(S) {
    var V = S.target, J = P().contains(V) || v.contains(V);
    if (!(S.type === "mousemove" && J)) {
      var ue = de().concat(v).map(function(se) {
        var Me, je = se._tippy, Lt = (Me = je.popperInstance) == null ? void 0 : Me.state;
        return Lt ? {
          popperRect: se.getBoundingClientRect(),
          popperState: Lt,
          props: n
        } : null;
      }).filter(Boolean);
      tf(ue, S) && (we(), Xe(S));
    }
  }
  function j(S) {
    var V = ae(S) || f.props.trigger.indexOf("click") >= 0 && s;
    if (!V) {
      if (f.props.interactive) {
        f.hideWithInteractivity(S);
        return;
      }
      Xe(S);
    }
  }
  function ne(S) {
    f.props.trigger.indexOf("focusin") < 0 && S.target !== P() || f.props.interactive && S.relatedTarget && v.contains(S.relatedTarget) || Xe(S);
  }
  function ae(S) {
    return nt.isTouch ? O() !== S.type.indexOf("touch") >= 0 : !1;
  }
  function _e() {
    ot();
    var S = f.props, V = S.popperOptions, J = S.placement, ue = S.offset, se = S.getReferenceClientRect, Me = S.moveTransition, je = I() ? ti(v).arrow : null, Lt = se ? {
      getBoundingClientRect: se,
      contextElement: se.contextElement || P()
    } : e, Ui = {
      name: "$$tippy",
      enabled: !0,
      phase: "beforeWrite",
      requires: ["computeStyles"],
      fn: function(Cn) {
        var It = Cn.state;
        if (I()) {
          var Ja = z(), pr = Ja.box;
          ["placement", "reference-hidden", "escaped"].forEach(function(kn) {
            kn === "placement" ? pr.setAttribute("data-placement", It.placement) : It.attributes.popper["data-popper-" + kn] ? pr.setAttribute("data-" + kn, "") : pr.removeAttribute("data-" + kn);
          }), It.attributes.popper = {};
        }
      }
    }, kt = [{
      name: "offset",
      options: {
        offset: ue
      }
    }, {
      name: "preventOverflow",
      options: {
        padding: {
          top: 2,
          bottom: 2,
          left: 5,
          right: 5
        }
      }
    }, {
      name: "flip",
      options: {
        padding: 5
      }
    }, {
      name: "computeStyles",
      options: {
        adaptive: !Me
      }
    }, Ui];
    I() && je && kt.push({
      name: "arrow",
      options: {
        element: je,
        padding: 3
      }
    }), kt.push.apply(kt, (V == null ? void 0 : V.modifiers) || []), f.popperInstance = U1(Lt, v, Object.assign({}, V, {
      placement: J,
      onFirstUpdate: E,
      modifiers: kt
    }));
  }
  function ot() {
    f.popperInstance && (f.popperInstance.destroy(), f.popperInstance = null);
  }
  function he() {
    var S = f.props.appendTo, V, J = P();
    f.props.interactive && S === ma || S === "parent" ? V = J.parentNode : V = ha(S, [J]), V.contains(v) || V.appendChild(v), f.state.isMounted = !0, _e(), process.env.NODE_ENV !== "production" && at(f.props.interactive && S === Re.appendTo && J.nextElementSibling !== v, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `

`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `

`, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `

`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
  }
  function de() {
    return Gn(v.querySelectorAll("[data-tippy-root]"));
  }
  function _t(S) {
    f.clearDelayTimeouts(), S && U("onTrigger", [f, S]), Se();
    var V = k(!0), J = x(), ue = J[0], se = J[1];
    nt.isTouch && ue === "hold" && se && (V = se), V ? r = setTimeout(function() {
      f.show();
    }, V) : f.show();
  }
  function Xe(S) {
    if (f.clearDelayTimeouts(), U("onUntrigger", [f, S]), !f.state.isVisible) {
      De();
      return;
    }
    if (!(f.props.trigger.indexOf("mouseenter") >= 0 && f.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(S.type) >= 0 && s)) {
      var V = k(!1);
      V ? i = setTimeout(function() {
        f.state.isVisible && f.hide();
      }, V) : o = requestAnimationFrame(function() {
        f.hide();
      });
    }
  }
  function et() {
    f.state.isEnabled = !0;
  }
  function Ct() {
    f.hide(), f.state.isEnabled = !1;
  }
  function Mt() {
    clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
  }
  function $t(S) {
    if (process.env.NODE_ENV !== "production" && at(f.state.isDestroyed, Nt("setProps")), !f.state.isDestroyed) {
      U("onBeforeUpdate", [f, S]), N();
      var V = f.props, J = Jo(e, Object.assign({}, V, qo(S), {
        ignoreAttributes: !0
      }));
      f.props = J, L(), V.interactiveDebounce !== J.interactiveDebounce && (we(), m = Uo(H, J.interactiveDebounce)), V.triggerTarget && !J.triggerTarget ? Rt(V.triggerTarget).forEach(function(ue) {
        ue.removeAttribute("aria-expanded");
      }) : J.triggerTarget && e.removeAttribute("aria-expanded"), te(), F(), d && d(V, J), f.popperInstance && (_e(), de().forEach(function(ue) {
        requestAnimationFrame(ue._tippy.popperInstance.forceUpdate);
      })), U("onAfterUpdate", [f, S]);
    }
  }
  function D(S) {
    f.setProps({
      content: S
    });
  }
  function Y() {
    process.env.NODE_ENV !== "production" && at(f.state.isDestroyed, Nt("show"));
    var S = f.state.isVisible, V = f.state.isDestroyed, J = !f.state.isEnabled, ue = nt.isTouch && !f.props.touch, se = Ir(f.props.duration, 0, Re.duration);
    if (!(S || V || J || ue) && !P().hasAttribute("disabled") && (U("onShow", [f], !1), f.props.onShow(f) !== !1)) {
      if (f.state.isVisible = !0, I() && (v.style.visibility = "visible"), F(), Se(), f.state.isMounted || (v.style.transition = "none"), I()) {
        var Me = z(), je = Me.box, Lt = Me.content;
        Nr([je, Lt], 0);
      }
      E = function() {
        var kt;
        if (!(!f.state.isVisible || u)) {
          if (u = !0, v.offsetHeight, v.style.transition = f.props.moveTransition, I() && f.props.animation) {
            var fr = z(), Cn = fr.box, It = fr.content;
            Nr([Cn, It], se), Ko([Cn, It], "visible");
          }
          Z(), te(), Wo(Rr, f), (kt = f.popperInstance) == null || kt.forceUpdate(), U("onMount", [f]), f.props.animation && I() && Te(se, function() {
            f.state.isShown = !0, U("onShown", [f]);
          });
        }
      }, he();
    }
  }
  function Oe() {
    process.env.NODE_ENV !== "production" && at(f.state.isDestroyed, Nt("hide"));
    var S = !f.state.isVisible, V = f.state.isDestroyed, J = !f.state.isEnabled, ue = Ir(f.props.duration, 1, Re.duration);
    if (!(S || V || J) && (U("onHide", [f], !1), f.props.onHide(f) !== !1)) {
      if (f.state.isVisible = !1, f.state.isShown = !1, u = !1, s = !1, I() && (v.style.visibility = "hidden"), we(), De(), F(!0), I()) {
        var se = z(), Me = se.box, je = se.content;
        f.props.animation && (Nr([Me, je], ue), Ko([Me, je], "hidden"));
      }
      Z(), te(), f.props.animation ? I() && Ge(ue, f.unmount) : f.unmount();
    }
  }
  function mt(S) {
    process.env.NODE_ENV !== "production" && at(f.state.isDestroyed, Nt("hideWithInteractivity")), C().addEventListener("mousemove", m), Wo(Mn, m), m(S);
  }
  function st() {
    process.env.NODE_ENV !== "production" && at(f.state.isDestroyed, Nt("unmount")), f.state.isVisible && f.hide(), f.state.isMounted && (ot(), de().forEach(function(S) {
      S._tippy.unmount();
    }), v.parentNode && v.parentNode.removeChild(v), Rr = Rr.filter(function(S) {
      return S !== f;
    }), f.state.isMounted = !1, U("onHidden", [f]));
  }
  function ht() {
    process.env.NODE_ENV !== "production" && at(f.state.isDestroyed, Nt("destroy")), !f.state.isDestroyed && (f.clearDelayTimeouts(), f.unmount(), N(), delete e._tippy, f.state.isDestroyed = !0, U("onDestroy", [f]));
  }
}
function wn(e, t) {
  t === void 0 && (t = {});
  var n = Re.plugins.concat(t.plugins || []);
  process.env.NODE_ENV !== "production" && (uf(e), Sa(t, n)), of();
  var r = Object.assign({}, t, {
    plugins: n
  }), i = ef(e);
  if (process.env.NODE_ENV !== "production") {
    var o = cn(r.content), s = i.length > 1;
    at(o && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `

`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `

`, `1) content: element.innerHTML
`, "2) content: () => element.cloneNode(true)"].join(" "));
  }
  var a = i.reduce(function(l, u) {
    var c = u && gf(u, r);
    return c && l.push(c), l;
  }, []);
  return cn(e) ? a[0] : a;
}
wn.defaultProps = Re;
wn.setDefaultProps = pf;
wn.currentInput = nt;
Object.assign({}, ra, {
  effect: function(t) {
    var n = t.state, r = {
      popper: {
        position: n.options.strategy,
        left: "0",
        top: "0",
        margin: "0"
      },
      arrow: {
        position: "absolute"
      },
      reference: {}
    };
    Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
  }
});
var ni = {
  clientX: 0,
  clientY: 0
}, $n = [];
function Ca(e) {
  var t = e.clientX, n = e.clientY;
  ni = {
    clientX: t,
    clientY: n
  };
}
function yf(e) {
  e.addEventListener("mousemove", Ca);
}
function bf(e) {
  e.removeEventListener("mousemove", Ca);
}
var wf = {
  name: "followCursor",
  defaultValue: !1,
  fn: function(t) {
    var n = t.reference, r = ga(t.props.triggerTarget || n), i = !1, o = !1, s = !0, a = t.props;
    function l() {
      return t.props.followCursor === "initial" && t.state.isVisible;
    }
    function u() {
      r.addEventListener("mousemove", E);
    }
    function c() {
      r.removeEventListener("mousemove", E);
    }
    function p() {
      i = !0, t.setProps({
        getReferenceClientRect: null
      }), i = !1;
    }
    function E(g) {
      var T = g.target ? n.contains(g.target) : !0, A = t.props.followCursor, B = g.clientX, $ = g.clientY, f = n.getBoundingClientRect(), R = B - f.left, v = $ - f.top;
      (T || !t.props.interactive) && t.setProps({
        // @ts-ignore - unneeded DOMRect properties
        getReferenceClientRect: function() {
          var h = n.getBoundingClientRect(), _ = B, x = $;
          A === "initial" && (_ = h.left + R, x = h.top + v);
          var O = A === "horizontal" ? h.top : x, I = A === "vertical" ? h.right : _, P = A === "horizontal" ? h.bottom : x, C = A === "vertical" ? h.left : _;
          return {
            width: I - C,
            height: P - O,
            top: O,
            right: I,
            bottom: P,
            left: C
          };
        }
      });
    }
    function y() {
      t.props.followCursor && ($n.push({
        instance: t,
        doc: r
      }), yf(r));
    }
    function m() {
      $n = $n.filter(function(g) {
        return g.instance !== t;
      }), $n.filter(function(g) {
        return g.doc === r;
      }).length === 0 && bf(r);
    }
    return {
      onCreate: y,
      onDestroy: m,
      onBeforeUpdate: function() {
        a = t.props;
      },
      onAfterUpdate: function(T, A) {
        var B = A.followCursor;
        i || B !== void 0 && a.followCursor !== B && (m(), B ? (y(), t.state.isMounted && !o && !l() && u()) : (c(), p()));
      },
      onMount: function() {
        t.props.followCursor && !o && (s && (E(ni), s = !1), l() || u());
      },
      onTrigger: function(T, A) {
        va(A) && (ni = {
          clientX: A.clientX,
          clientY: A.clientY
        }), o = A.type === "focus";
      },
      onHidden: function() {
        t.props.followCursor && (p(), c(), s = !0);
      }
    };
  }
};
wn.setDefaultProps({
  render: _a
});
const Ef = /* @__PURE__ */ pe({
  __name: "TippyPopover",
  props: {
    target: {
      type: [String, Object],
      default: ""
    },
    selectorParent: {
      type: Object,
      default: () => window.document
    },
    appendToBody: {
      type: Boolean,
      default: !0
    },
    theme: {
      type: String,
      default: "default"
    },
    arrow: {
      type: [Boolean, String],
      default: !0
    },
    delay: {
      type: [Number, Array],
      default: 0
    },
    duration: {
      type: [Number, Array],
      default: () => [300, 250]
    },
    followCursor: {
      type: [String, Boolean],
      default: !1
    },
    hideOnClick: {
      type: [String, Boolean],
      default: !0
    },
    inertia: {
      type: Boolean,
      default: !1
    },
    interactive: {
      type: Boolean,
      default: !0
    },
    interactiveBorder: {
      type: Number,
      default: 2
    },
    interactiveDebounce: {
      type: Number,
      default: 0
    },
    maxWidth: {
      type: [Number, Boolean],
      default: 350
    },
    offset: {
      type: Array,
      default: () => [0, 0]
    },
    zIndex: {
      type: Number,
      default: 800
    },
    placement: {
      type: String,
      default: "top"
    },
    animation: {
      type: [String, Boolean],
      default: "scale"
    },
    trigger: {
      type: String,
      default: "mouseenter click"
    },
    triggerTarget: {
      type: [Object, Array],
      default: null
    }
  },
  setup(e) {
    const t = e, n = sn(null), r = sn(null), i = () => {
      const s = {
        ignoreAttributes: !0,
        allowHTML: !1,
        showOnCreate: !1
        // sticky: false
      };
      return s.appendTo = t.appendToBody ? () => document.body : "parent", s.arrow = t.arrow, s.theme = t.theme, s.delay = t.delay, s.duration = t.duration, s.hideOnClick = t.hideOnClick, s.followCursor = t.followCursor, s.inertia = t.inertia, s.interactive = t.interactive, s.interactiveBorder = t.interactiveBorder, s.interactiveDebounce = t.interactiveDebounce, s.maxWidth = t.maxWidth, s.zIndex = t.zIndex, s.offset = t.offset, s.placement = t.placement, s.animation = t.animation, s.trigger = t.trigger, s.triggerTarget = t.triggerTarget, s;
    }, o = () => {
      if (!t.target)
        return console.warn("Tippy target can not be null");
      const s = typeof t.target == "string" ? t.selectorParent.querySelector(t.target) : t.target, a = i();
      s && (r.value = wn(s, {
        ...a,
        content: n.value,
        plugins: [wf]
      }));
    };
    return ft(() => {
      o();
    }), gs(() => {
      r.value && (Array.isArray(r.value) ? r.value.forEach((s) => {
        s.unmount(), s.destroy();
      }) : (r.value.unmount(), r.value.destroy()));
    }), ze(() => t.target, o), (s, a) => (W(), oe("div", {
      ref_key: "tippyWrapper",
      ref: n,
      class: "tippy-wrapper"
    }, [
      Le(s.$slots, "default")
    ], 512));
  }
}), Sf = ["width", "height", "stroke-width", "stroke"], _f = /* @__PURE__ */ G("path", { d: "M12 9m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0" }, null, -1), Cf = /* @__PURE__ */ G("path", { d: "M12 14v7" }, null, -1), kf = /* @__PURE__ */ G("path", { d: "M9 18h6" }, null, -1), Tf = [
  _f,
  Cf,
  kf
], Of = /* @__PURE__ */ pe({
  name: "GenderFemale",
  __name: "GenderFemale",
  props: {
    size: {
      type: Number,
      default: 16
    },
    stroke: {
      type: Number,
      default: 2
    },
    color: {
      type: String,
      default: "#2c3e50"
    }
  },
  setup(e) {
    return (t, n) => (W(), oe("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      class: "icon icon-tabler icon-tabler-gender-female",
      width: e.size,
      height: e.size,
      viewBox: "0 0 24 24",
      "stroke-width": e.stroke,
      stroke: e.color,
      fill: "none",
      "stroke-linecap": "round",
      "stroke-linejoin": "round"
    }, Tf, 8, Sf));
  }
}), Af = ["width", "height", "stroke-width", "stroke"], Pf = /* @__PURE__ */ G("path", { d: "M10 14m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0" }, null, -1), xf = /* @__PURE__ */ G("path", { d: "M19 5l-5.4 5.4" }, null, -1), Df = /* @__PURE__ */ G("path", { d: "M19 5h-5" }, null, -1), Mf = /* @__PURE__ */ G("path", { d: "M19 5v5" }, null, -1), $f = [
  Pf,
  xf,
  Df,
  Mf
], Lf = /* @__PURE__ */ pe({
  name: "GenderMale",
  __name: "GenderMale",
  props: {
    size: {
      type: Number,
      default: 16
    },
    stroke: {
      type: Number,
      default: 2
    },
    color: {
      type: String,
      default: "#2c3e50"
    }
  },
  setup(e) {
    return (t, n) => (W(), oe("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      class: "icon icon-tabler icon-tabler-gender-male",
      width: e.size,
      height: e.size,
      viewBox: "0 0 24 24",
      "stroke-width": e.stroke,
      stroke: e.color,
      fill: "none",
      "stroke-linecap": "round",
      "stroke-linejoin": "round"
    }, $f, 8, Af));
  }
}), If = {
  class: "icon-image",
  viewBox: "0 0 1024 1024",
  xmlns: "http://www.w3.org/2000/svg",
  width: "72",
  height: "72"
}, Nf = /* @__PURE__ */ ys('<path d="M288.921053 707.654248c-152.288409 12.659309-99.539384-170.917798-51.367801-420.713709C268.191292 68.17078 384.956012 0.707734 515.144851 0.81047c154.674158 0.125566 213.530243 78.695472 262.47805 305.124741 64.118431 367.428176 100.977683 417.152208-17.1226 417.015227-102.005039-0.125566-471.579248-15.29619-471.579248-15.29619z"></path><path d="M73.689965 1023.269436l50.374691-320.295365 260.994091-81.161126h233.803403l281.061779 81.172541 50.386106 320.28395H73.689965z" fill="#AAD5DC"></path><path d="M618.816489 622.543509l280.513857 81.046975L949.499565 1022.561702H74.55751l50.16922-318.982633 260.446168-81.046975h233.643591m0.205472-1.472544h-234.008874L123.402582 702.403318 72.82242 1024h878.35516l-50.591577-321.596682-281.621118-81.332353z"></path><path d="M591.100707 1019.125766H415.468486l-46.721869-387.724165 71.127282-25.729561 137.094955-2.054712 70.625019 31.311528-56.493166 384.19691zM667.958353 265.640024c68.992665-29.416628 96.936749 101.171739 5.262346 153.030388z" fill="#FFCFB5"></path><path d="M585.016476 815.640782H425.194123l7.419794-206.841014-20.958063-131.22761 173.91996 4.006688-12.145631 110.440774 11.586293 223.621162z" fill="#FFCFB5"></path><path d="M677.763895 329.564399c1.141507-100.635231-39.096604-173.577509-39.096604-173.577508l-60.168818 11.98582a496.407018 496.407018 0 0 1-81.378013 9.200544 496.270038 496.270038 0 0 1-81.378012-9.200544l-60.180234-11.98582s-40.181036 72.942278-39.085189 173.577508l-1.141507 92.81591c0 68.17078 101.046173 155.244911 181.739282 155.244911 59.244198 0 181.727867-87.062716 181.727866-155.244911z" fill="#FFE7D9"></path><path d="M320.632109 269.361336c-68.98125-29.428043-96.925334 101.171739-5.25093 153.018973z" fill="#FFCFB5"></path><path d="M515.144851 91.526007c-27.944084 83.158763-124.230174 172.961095-167.801485 177.835329s-71.54964-4.269235-71.54964-4.269235S337.811785 61.287495 515.144851 91.526007z"></path><path d="M445.307471 133.796c9.942523 95.190244 227.833322 186.659176 234.008874 180.848907 20.421555-78.821038 55.831093-7.648095 55.831092-7.648095l-54.4727-202.046686-122.483668-49.084788h-67.953894"></path><path d="M416.119145 1018.383787l-28.537668-236.919715c23.423717 24.348338 90.612802 33.103694 141.980604 33.103694 44.233385 0 80.932825-5.97008 93.101286-14.976568l-32.190489 218.792589z" fill="#FFFFFF"></path><path d="M388.563173 783.484538c10.638842 10.068089 29.302477 18.001561 55.557131 23.629189 24.451074 5.239516 54.792322 8.127528 85.430362 8.127528 43.445745 0 78.558491-5.467817 92.11959-14.131853l-31.836622 216.543821H416.769804L388.563173 783.484538m-1.997637-4.234989l28.90295 239.933293h175.643636s28.537667-194.227365 32.544356-221.38381c-10.684503 10.033844-50.032239 15.981094-94.105812 15.981094-57.075335 0-122.209707-10.079504-142.98513-34.519162z"></path><path d="M370.538782 631.401601l-79.871224 26.905313-3.789802 120.942635h41.710655l-32.453035 39.758678 72.611241 199.535371 48.514034 0.582168-46.721869-387.724165zM647.593873 634.928856l85.670078 24.565225 27.202105 79.996789-54.415625 22.088155 54.415625 17.670524-103.431922 238.951597-65.933427 0.92462 56.493166-384.19691z" fill="#A6D3DB"></path>', 12), Bf = [
  Nf
], Rf = /* @__PURE__ */ pe({
  name: "EmptyFemaleImage",
  __name: "EmptyFemaleImage",
  setup(e) {
    return (t, n) => (W(), oe("svg", If, Bf));
  }
}), zf = {
  class: "icon-image",
  viewBox: "0 0 1024 1024",
  xmlns: "http://www.w3.org/2000/svg",
  width: "72",
  height: "72"
}, Ff = /* @__PURE__ */ ys('<path d="M384.177143 618.594286l-263.142857 81.828571L70.131429 1024h883.737142l-50.902857-323.577143-283.337143-81.828571H384.177143z" fill="#262626"></path><path d="M422.828571 493.2h160.8v185.554286h-160.8z" fill="#EAA063"></path><path d="M734.52 196.205714c0 131.165714 11.725714 212.102857-225.771429 210.788572-230.011429-1.268571-249.222857-79.622857-249.222857-210.788572S380.828571 0 511.994286 0s222.525714 65.04 222.525714 196.205714z" fill="#834B12"></path><path d="M678.771429 325.302857c1.142857-101.257143-39.325714-174.64-39.325715-174.64l-60.571428 12.057143a500.48 500.48 0 0 1-81.874286 9.257143 500.571429 500.571429 0 0 1-81.885714-9.257143l-60.571429-12.057143s-40.377143 73.382857-39.325714 174.64l-1.142857 93.382857c0 68.571429 50.491429 80.354286 103.348571 116.068572 27.428571 18.491429 47.92 35.737143 79.508572 40.114285 31.577143-4.377143 52.114286-21.622857 79.497142-40.114285 52.857143-35.714286 103.348571-47.474286 103.348572-116.068572z" fill="#FFBF82"></path><path d="M319.457143 264.731429c-69.382857-29.554286-97.531429 101.794286-5.291429 153.954285zM670.714286 255.577143c69.417143-29.611429 97.531429 101.794286 5.291428 153.954286z" fill="#EAA063"></path><path d="M385.514286 625.382857l116.388571 49.577143 116.502857-49.622857-106.468571 316.24-126.422857-316.194286z" fill="#FFFFFF"></path><path d="M617.171429 626.662857l-105.291429 312.777143-125.017143-312.674286 114.445714 48.754286 0.582858 0.24 0.582857-0.24 114.697143-48.857143m2.445714-2.651428l-117.714286 50.148571-117.714286-50.148571 127.805715 319.737142 107.622857-319.702857z"></path><path d="M479.068571 935.611429l11.108572-235.988572h26.857143l11.108571 235.988572h-49.074286z" fill="#B292CB"></path><path d="M516.634286 700.022857l11.074285 235.188572h-48.217142l11.062857-235.188572h26.08m0.777143-0.8H489.788571l-11.142857 236.8h49.92l-11.154285-236.845714z"></path><path d="M484.52 735.177143a11.828571 11.828571 0 0 1-11.428571-8.937143l-7.268572-28.742857a11.828571 11.828571 0 0 1 11.428572-14.731429h49.28a11.828571 11.828571 0 0 1 11.428571 14.731429L530.702857 726.24a11.851429 11.851429 0 0 1-11.485714 8.937143z" fill="#B292CB"></path><path d="M526.531429 683.177143a11.428571 11.428571 0 0 1 11.085714 14.24l-7.268572 28.731428a11.428571 11.428571 0 0 1-11.085714 8.64h-34.742857a11.428571 11.428571 0 0 1-11.085714-8.64l-7.268572-28.731428a11.428571 11.428571 0 0 1 11.085715-14.24h49.28m0-0.811429h-49.28a12.24 12.24 0 0 0-11.862858 15.245715l7.257143 28.742857a12.24 12.24 0 0 0 11.874286 9.234285h34.742857a12.24 12.24 0 0 0 11.874286-9.234285l7.268571-28.742857a12.251429 12.251429 0 0 0-11.874285-15.245715z"></path><path d="M415.845714 583.931429l86.057143 94.822857-68.502857 60.262857-49.222857-120.422857 31.668571-34.662857z" fill="#FFFFFF"></path><path d="M587.948571 583.931429l-86.045714 94.822857 68.491429 60.262857 49.234285-120.422857-31.68-34.662857z" fill="#FFFFFF"></path><path d="M380.36 619.782857l-58.742857 18.285714 17.268571 94.194286 91.085715 44.685714-87.188572 36.16 169.668572 144.445715a5.028571 5.028571 0 0 0 7.885714-5.782857z" fill="#676568"></path><path d="M623.468571 619.714286l76.137143 21.977143a4.251429 4.251429 0 0 1 3.062857 4.08v128.228571a4.251429 4.251429 0 0 1-2.068571 3.645714l-92.4 55.097143a4.251429 4.251429 0 0 0 0.548571 7.565714l72.24 29.954286a4.251429 4.251429 0 0 1 0.8 7.405714L489.434286 1011.714286a4.24 4.24 0 0 1-6.422857-4.891429l135.28-384.445714a4.228571 4.228571 0 0 1 5.177142-2.662857z" fill="#676568"></path>', 15), jf = [
  Ff
], Vf = /* @__PURE__ */ pe({
  name: "EmptyMaleImage",
  __name: "EmptyMaleImage",
  setup(e) {
    return (t, n) => (W(), oe("svg", zf, jf));
  }
});
function ka(e, t) {
  return function() {
    return e.apply(t, arguments);
  };
}
const { toString: Hf } = Object.prototype, { getPrototypeOf: Ri } = Object, ar = /* @__PURE__ */ ((e) => (t) => {
  const n = Hf.call(t);
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), Qe = (e) => (e = e.toLowerCase(), (t) => ar(t) === e), lr = (e) => (t) => typeof t === e, { isArray: Gt } = Array, dn = lr("undefined");
function Uf(e) {
  return e !== null && !dn(e) && e.constructor !== null && !dn(e.constructor) && Ue(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const Ta = Qe("ArrayBuffer");
function Wf(e) {
  let t;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ta(e.buffer), t;
}
const qf = lr("string"), Ue = lr("function"), Oa = lr("number"), cr = (e) => e !== null && typeof e == "object", Kf = (e) => e === !0 || e === !1, Fn = (e) => {
  if (ar(e) !== "object")
    return !1;
  const t = Ri(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}, Gf = Qe("Date"), Yf = Qe("File"), Xf = Qe("Blob"), Jf = Qe("FileList"), Zf = (e) => cr(e) && Ue(e.pipe), Qf = (e) => {
  let t;
  return e && (typeof FormData == "function" && e instanceof FormData || Ue(e.append) && ((t = ar(e)) === "formdata" || // detect form-data instance
  t === "object" && Ue(e.toString) && e.toString() === "[object FormData]"));
}, ep = Qe("URLSearchParams"), [tp, np, rp, ip] = ["ReadableStream", "Request", "Response", "Headers"].map(Qe), op = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function En(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u")
    return;
  let r, i;
  if (typeof e != "object" && (e = [e]), Gt(e))
    for (r = 0, i = e.length; r < i; r++)
      t.call(null, e[r], r, e);
  else {
    const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), s = o.length;
    let a;
    for (r = 0; r < s; r++)
      a = o[r], t.call(null, e[a], a, e);
  }
}
function Aa(e, t) {
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length, i;
  for (; r-- > 0; )
    if (i = n[r], t === i.toLowerCase())
      return i;
  return null;
}
const Pa = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, xa = (e) => !dn(e) && e !== Pa;
function ri() {
  const { caseless: e } = xa(this) && this || {}, t = {}, n = (r, i) => {
    const o = e && Aa(t, i) || i;
    Fn(t[o]) && Fn(r) ? t[o] = ri(t[o], r) : Fn(r) ? t[o] = ri({}, r) : Gt(r) ? t[o] = r.slice() : t[o] = r;
  };
  for (let r = 0, i = arguments.length; r < i; r++)
    arguments[r] && En(arguments[r], n);
  return t;
}
const sp = (e, t, n, { allOwnKeys: r } = {}) => (En(t, (i, o) => {
  n && Ue(i) ? e[o] = ka(i, n) : e[o] = i;
}, { allOwnKeys: r }), e), ap = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), lp = (e, t, n, r) => {
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
    value: t.prototype
  }), n && Object.assign(e.prototype, n);
}, cp = (e, t, n, r) => {
  let i, o, s;
  const a = {};
  if (t = t || {}, e == null) return t;
  do {
    for (i = Object.getOwnPropertyNames(e), o = i.length; o-- > 0; )
      s = i[o], (!r || r(s, e, t)) && !a[s] && (t[s] = e[s], a[s] = !0);
    e = n !== !1 && Ri(e);
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
  return t;
}, up = (e, t, n) => {
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
  const r = e.indexOf(t, n);
  return r !== -1 && r === n;
}, dp = (e) => {
  if (!e) return null;
  if (Gt(e)) return e;
  let t = e.length;
  if (!Oa(t)) return null;
  const n = new Array(t);
  for (; t-- > 0; )
    n[t] = e[t];
  return n;
}, fp = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ri(Uint8Array)), pp = (e, t) => {
  const r = (e && e[Symbol.iterator]).call(e);
  let i;
  for (; (i = r.next()) && !i.done; ) {
    const o = i.value;
    t.call(e, o[0], o[1]);
  }
}, mp = (e, t) => {
  let n;
  const r = [];
  for (; (n = e.exec(t)) !== null; )
    r.push(n);
  return r;
}, hp = Qe("HTMLFormElement"), vp = (e) => e.toLowerCase().replace(
  /[-_\s]([a-z\d])(\w*)/g,
  function(n, r, i) {
    return r.toUpperCase() + i;
  }
), es = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), gp = Qe("RegExp"), Da = (e, t) => {
  const n = Object.getOwnPropertyDescriptors(e), r = {};
  En(n, (i, o) => {
    let s;
    (s = t(i, o, e)) !== !1 && (r[o] = s || i);
  }), Object.defineProperties(e, r);
}, yp = (e) => {
  Da(e, (t, n) => {
    if (Ue(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
      return !1;
    const r = e[n];
    if (Ue(r)) {
      if (t.enumerable = !1, "writable" in t) {
        t.writable = !1;
        return;
      }
      t.set || (t.set = () => {
        throw Error("Can not rewrite read-only method '" + n + "'");
      });
    }
  });
}, bp = (e, t) => {
  const n = {}, r = (i) => {
    i.forEach((o) => {
      n[o] = !0;
    });
  };
  return Gt(e) ? r(e) : r(String(e).split(t)), n;
}, wp = () => {
}, Ep = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, zr = "abcdefghijklmnopqrstuvwxyz", ts = "0123456789", Ma = {
  DIGIT: ts,
  ALPHA: zr,
  ALPHA_DIGIT: zr + zr.toUpperCase() + ts
}, Sp = (e = 16, t = Ma.ALPHA_DIGIT) => {
  let n = "";
  const { length: r } = t;
  for (; e--; )
    n += t[Math.random() * r | 0];
  return n;
};
function _p(e) {
  return !!(e && Ue(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
}
const Cp = (e) => {
  const t = new Array(10), n = (r, i) => {
    if (cr(r)) {
      if (t.indexOf(r) >= 0)
        return;
      if (!("toJSON" in r)) {
        t[i] = r;
        const o = Gt(r) ? [] : {};
        return En(r, (s, a) => {
          const l = n(s, i + 1);
          !dn(l) && (o[a] = l);
        }), t[i] = void 0, o;
      }
    }
    return r;
  };
  return n(e, 0);
}, kp = Qe("AsyncFunction"), Tp = (e) => e && (cr(e) || Ue(e)) && Ue(e.then) && Ue(e.catch), w = {
  isArray: Gt,
  isArrayBuffer: Ta,
  isBuffer: Uf,
  isFormData: Qf,
  isArrayBufferView: Wf,
  isString: qf,
  isNumber: Oa,
  isBoolean: Kf,
  isObject: cr,
  isPlainObject: Fn,
  isReadableStream: tp,
  isRequest: np,
  isResponse: rp,
  isHeaders: ip,
  isUndefined: dn,
  isDate: Gf,
  isFile: Yf,
  isBlob: Xf,
  isRegExp: gp,
  isFunction: Ue,
  isStream: Zf,
  isURLSearchParams: ep,
  isTypedArray: fp,
  isFileList: Jf,
  forEach: En,
  merge: ri,
  extend: sp,
  trim: op,
  stripBOM: ap,
  inherits: lp,
  toFlatObject: cp,
  kindOf: ar,
  kindOfTest: Qe,
  endsWith: up,
  toArray: dp,
  forEachEntry: pp,
  matchAll: mp,
  isHTMLForm: hp,
  hasOwnProperty: es,
  hasOwnProp: es,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: Da,
  freezeMethods: yp,
  toObjectSet: bp,
  toCamelCase: vp,
  noop: wp,
  toFiniteNumber: Ep,
  findKey: Aa,
  global: Pa,
  isContextDefined: xa,
  ALPHABET: Ma,
  generateString: Sp,
  isSpecCompliantForm: _p,
  toJSONObject: Cp,
  isAsyncFn: kp,
  isThenable: Tp
};
function ee(e, t, n, r, i) {
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i);
}
w.inherits(ee, Error, {
  toJSON: function() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: w.toJSONObject(this.config),
      code: this.code,
      status: this.response && this.response.status ? this.response.status : null
    };
  }
});
const $a = ee.prototype, La = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL"
  // eslint-disable-next-line func-names
].forEach((e) => {
  La[e] = { value: e };
});
Object.defineProperties(ee, La);
Object.defineProperty($a, "isAxiosError", { value: !0 });
ee.from = (e, t, n, r, i, o) => {
  const s = Object.create($a);
  return w.toFlatObject(e, s, function(l) {
    return l !== Error.prototype;
  }, (a) => a !== "isAxiosError"), ee.call(s, e.message, t, n, r, i), s.cause = e, s.name = e.name, o && Object.assign(s, o), s;
};
const Op = null;
function ii(e) {
  return w.isPlainObject(e) || w.isArray(e);
}
function Ia(e) {
  return w.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function ns(e, t, n) {
  return e ? e.concat(t).map(function(i, o) {
    return i = Ia(i), !n && o ? "[" + i + "]" : i;
  }).join(n ? "." : "") : t;
}
function Ap(e) {
  return w.isArray(e) && !e.some(ii);
}
const Pp = w.toFlatObject(w, {}, null, function(t) {
  return /^is[A-Z]/.test(t);
});
function ur(e, t, n) {
  if (!w.isObject(e))
    throw new TypeError("target must be an object");
  t = t || new FormData(), n = w.toFlatObject(n, {
    metaTokens: !0,
    dots: !1,
    indexes: !1
  }, !1, function(g, T) {
    return !w.isUndefined(T[g]);
  });
  const r = n.metaTokens, i = n.visitor || c, o = n.dots, s = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && w.isSpecCompliantForm(t);
  if (!w.isFunction(i))
    throw new TypeError("visitor must be a function");
  function u(m) {
    if (m === null) return "";
    if (w.isDate(m))
      return m.toISOString();
    if (!l && w.isBlob(m))
      throw new ee("Blob is not supported. Use a Buffer instead.");
    return w.isArrayBuffer(m) || w.isTypedArray(m) ? l && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
  }
  function c(m, g, T) {
    let A = m;
    if (m && !T && typeof m == "object") {
      if (w.endsWith(g, "{}"))
        g = r ? g : g.slice(0, -2), m = JSON.stringify(m);
      else if (w.isArray(m) && Ap(m) || (w.isFileList(m) || w.endsWith(g, "[]")) && (A = w.toArray(m)))
        return g = Ia(g), A.forEach(function($, f) {
          !(w.isUndefined($) || $ === null) && t.append(
            // eslint-disable-next-line no-nested-ternary
            s === !0 ? ns([g], f, o) : s === null ? g : g + "[]",
            u($)
          );
        }), !1;
    }
    return ii(m) ? !0 : (t.append(ns(T, g, o), u(m)), !1);
  }
  const p = [], E = Object.assign(Pp, {
    defaultVisitor: c,
    convertValue: u,
    isVisitable: ii
  });
  function y(m, g) {
    if (!w.isUndefined(m)) {
      if (p.indexOf(m) !== -1)
        throw Error("Circular reference detected in " + g.join("."));
      p.push(m), w.forEach(m, function(A, B) {
        (!(w.isUndefined(A) || A === null) && i.call(
          t,
          A,
          w.isString(B) ? B.trim() : B,
          g,
          E
        )) === !0 && y(A, g ? g.concat(B) : [B]);
      }), p.pop();
    }
  }
  if (!w.isObject(e))
    throw new TypeError("data must be an object");
  return y(e), t;
}
function rs(e) {
  const t = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
    return t[r];
  });
}
function zi(e, t) {
  this._pairs = [], e && ur(e, this, t);
}
const Na = zi.prototype;
Na.append = function(t, n) {
  this._pairs.push([t, n]);
};
Na.toString = function(t) {
  const n = t ? function(r) {
    return t.call(this, r, rs);
  } : rs;
  return this._pairs.map(function(i) {
    return n(i[0]) + "=" + n(i[1]);
  }, "").join("&");
};
function xp(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function Ba(e, t, n) {
  if (!t)
    return e;
  const r = n && n.encode || xp, i = n && n.serialize;
  let o;
  if (i ? o = i(t, n) : o = w.isURLSearchParams(t) ? t.toString() : new zi(t, n).toString(r), o) {
    const s = e.indexOf("#");
    s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
  }
  return e;
}
class is {
  constructor() {
    this.handlers = [];
  }
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   *
   * @return {Number} An ID used to remove interceptor later
   */
  use(t, n, r) {
    return this.handlers.push({
      fulfilled: t,
      rejected: n,
      synchronous: r ? r.synchronous : !1,
      runWhen: r ? r.runWhen : null
    }), this.handlers.length - 1;
  }
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   *
   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
   */
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null);
  }
  /**
   * Clear all interceptors from the stack
   *
   * @returns {void}
   */
  clear() {
    this.handlers && (this.handlers = []);
  }
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   *
   * @returns {void}
   */
  forEach(t) {
    w.forEach(this.handlers, function(r) {
      r !== null && t(r);
    });
  }
}
const Ra = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1
}, Dp = typeof URLSearchParams < "u" ? URLSearchParams : zi, Mp = typeof FormData < "u" ? FormData : null, $p = typeof Blob < "u" ? Blob : null, Lp = {
  isBrowser: !0,
  classes: {
    URLSearchParams: Dp,
    FormData: Mp,
    Blob: $p
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, Fi = typeof window < "u" && typeof document < "u", Ip = ((e) => Fi && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Np = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bp = Fi && window.location.href || "http://localhost", Rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: Fi,
  hasStandardBrowserEnv: Ip,
  hasStandardBrowserWebWorkerEnv: Np,
  origin: Bp
}, Symbol.toStringTag, { value: "Module" })), Ze = {
  ...Rp,
  ...Lp
};
function zp(e, t) {
  return ur(e, new Ze.classes.URLSearchParams(), Object.assign({
    visitor: function(n, r, i, o) {
      return Ze.isNode && w.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
    }
  }, t));
}
function Fp(e) {
  return w.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function jp(e) {
  const t = {}, n = Object.keys(e);
  let r;
  const i = n.length;
  let o;
  for (r = 0; r < i; r++)
    o = n[r], t[o] = e[o];
  return t;
}
function za(e) {
  function t(n, r, i, o) {
    let s = n[o++];
    if (s === "__proto__") return !0;
    const a = Number.isFinite(+s), l = o >= n.length;
    return s = !s && w.isArray(i) ? i.length : s, l ? (w.hasOwnProp(i, s) ? i[s] = [i[s], r] : i[s] = r, !a) : ((!i[s] || !w.isObject(i[s])) && (i[s] = []), t(n, r, i[s], o) && w.isArray(i[s]) && (i[s] = jp(i[s])), !a);
  }
  if (w.isFormData(e) && w.isFunction(e.entries)) {
    const n = {};
    return w.forEachEntry(e, (r, i) => {
      t(Fp(r), i, n, 0);
    }), n;
  }
  return null;
}
function Vp(e, t, n) {
  if (w.isString(e))
    try {
      return (t || JSON.parse)(e), w.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError")
        throw r;
    }
  return (n || JSON.stringify)(e);
}
const Sn = {
  transitional: Ra,
  adapter: ["xhr", "http", "fetch"],
  transformRequest: [function(t, n) {
    const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, o = w.isObject(t);
    if (o && w.isHTMLForm(t) && (t = new FormData(t)), w.isFormData(t))
      return i ? JSON.stringify(za(t)) : t;
    if (w.isArrayBuffer(t) || w.isBuffer(t) || w.isStream(t) || w.isFile(t) || w.isBlob(t) || w.isReadableStream(t))
      return t;
    if (w.isArrayBufferView(t))
      return t.buffer;
    if (w.isURLSearchParams(t))
      return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
    let a;
    if (o) {
      if (r.indexOf("application/x-www-form-urlencoded") > -1)
        return zp(t, this.formSerializer).toString();
      if ((a = w.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
        const l = this.env && this.env.FormData;
        return ur(
          a ? { "files[]": t } : t,
          l && new l(),
          this.formSerializer
        );
      }
    }
    return o || i ? (n.setContentType("application/json", !1), Vp(t)) : t;
  }],
  transformResponse: [function(t) {
    const n = this.transitional || Sn.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
    if (w.isResponse(t) || w.isReadableStream(t))
      return t;
    if (t && w.isString(t) && (r && !this.responseType || i)) {
      const s = !(n && n.silentJSONParsing) && i;
      try {
        return JSON.parse(t);
      } catch (a) {
        if (s)
          throw a.name === "SyntaxError" ? ee.from(a, ee.ERR_BAD_RESPONSE, this, null, this.response) : a;
      }
    }
    return t;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: Ze.classes.FormData,
    Blob: Ze.classes.Blob
  },
  validateStatus: function(t) {
    return t >= 200 && t < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*",
      "Content-Type": void 0
    }
  }
};
w.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
  Sn.headers[e] = {};
});
const Hp = w.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]), Up = (e) => {
  const t = {};
  let n, r, i;
  return e && e.split(`
`).forEach(function(s) {
    i = s.indexOf(":"), n = s.substring(0, i).trim().toLowerCase(), r = s.substring(i + 1).trim(), !(!n || t[n] && Hp[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
  }), t;
}, os = Symbol("internals");
function Jt(e) {
  return e && String(e).trim().toLowerCase();
}
function jn(e) {
  return e === !1 || e == null ? e : w.isArray(e) ? e.map(jn) : String(e);
}
function Wp(e) {
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let r;
  for (; r = n.exec(e); )
    t[r[1]] = r[2];
  return t;
}
const qp = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function Fr(e, t, n, r, i) {
  if (w.isFunction(r))
    return r.call(this, t, n);
  if (i && (t = n), !!w.isString(t)) {
    if (w.isString(r))
      return t.indexOf(r) !== -1;
    if (w.isRegExp(r))
      return r.test(t);
  }
}
function Kp(e) {
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function Gp(e, t) {
  const n = w.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function(i, o, s) {
        return this[r].call(this, t, i, o, s);
      },
      configurable: !0
    });
  });
}
class Be {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const i = this;
    function o(a, l, u) {
      const c = Jt(l);
      if (!c)
        throw new Error("header name must be a non-empty string");
      const p = w.findKey(i, c);
      (!p || i[p] === void 0 || u === !0 || u === void 0 && i[p] !== !1) && (i[p || l] = jn(a));
    }
    const s = (a, l) => w.forEach(a, (u, c) => o(u, c, l));
    if (w.isPlainObject(t) || t instanceof this.constructor)
      s(t, n);
    else if (w.isString(t) && (t = t.trim()) && !qp(t))
      s(Up(t), n);
    else if (w.isHeaders(t))
      for (const [a, l] of t.entries())
        o(l, a, r);
    else
      t != null && o(n, t, r);
    return this;
  }
  get(t, n) {
    if (t = Jt(t), t) {
      const r = w.findKey(this, t);
      if (r) {
        const i = this[r];
        if (!n)
          return i;
        if (n === !0)
          return Wp(i);
        if (w.isFunction(n))
          return n.call(this, i, r);
        if (w.isRegExp(n))
          return n.exec(i);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (t = Jt(t), t) {
      const r = w.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || Fr(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let i = !1;
    function o(s) {
      if (s = Jt(s), s) {
        const a = w.findKey(r, s);
        a && (!n || Fr(r, r[a], a, n)) && (delete r[a], i = !0);
      }
    }
    return w.isArray(t) ? t.forEach(o) : o(t), i;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length, i = !1;
    for (; r--; ) {
      const o = n[r];
      (!t || Fr(this, this[o], o, t, !0)) && (delete this[o], i = !0);
    }
    return i;
  }
  normalize(t) {
    const n = this, r = {};
    return w.forEach(this, (i, o) => {
      const s = w.findKey(r, o);
      if (s) {
        n[s] = jn(i), delete n[o];
        return;
      }
      const a = t ? Kp(o) : String(o).trim();
      a !== o && delete n[o], n[a] = jn(i), r[a] = !0;
    }), this;
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = /* @__PURE__ */ Object.create(null);
    return w.forEach(this, (r, i) => {
      r != null && r !== !1 && (n[i] = t && w.isArray(r) ? r.join(", ") : r);
    }), n;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(t) {
    return t instanceof this ? t : new this(t);
  }
  static concat(t, ...n) {
    const r = new this(t);
    return n.forEach((i) => r.set(i)), r;
  }
  static accessor(t) {
    const r = (this[os] = this[os] = {
      accessors: {}
    }).accessors, i = this.prototype;
    function o(s) {
      const a = Jt(s);
      r[a] || (Gp(i, s), r[a] = !0);
    }
    return w.isArray(t) ? t.forEach(o) : o(t), this;
  }
}
Be.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
w.reduceDescriptors(Be.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1);
  return {
    get: () => e,
    set(r) {
      this[n] = r;
    }
  };
});
w.freezeMethods(Be);
function jr(e, t) {
  const n = this || Sn, r = t || n, i = Be.from(r.headers);
  let o = r.data;
  return w.forEach(e, function(a) {
    o = a.call(n, o, i.normalize(), t ? t.status : void 0);
  }), i.normalize(), o;
}
function Fa(e) {
  return !!(e && e.__CANCEL__);
}
function Yt(e, t, n) {
  ee.call(this, e ?? "canceled", ee.ERR_CANCELED, t, n), this.name = "CanceledError";
}
w.inherits(Yt, ee, {
  __CANCEL__: !0
});
function ja(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status) ? e(n) : t(new ee(
    "Request failed with status code " + n.status,
    [ee.ERR_BAD_REQUEST, ee.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
    n.config,
    n.request,
    n
  ));
}
function Yp(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return t && t[1] || "";
}
function Xp(e, t) {
  e = e || 10;
  const n = new Array(e), r = new Array(e);
  let i = 0, o = 0, s;
  return t = t !== void 0 ? t : 1e3, function(l) {
    const u = Date.now(), c = r[o];
    s || (s = u), n[i] = l, r[i] = u;
    let p = o, E = 0;
    for (; p !== i; )
      E += n[p++], p = p % e;
    if (i = (i + 1) % e, i === o && (o = (o + 1) % e), u - s < t)
      return;
    const y = c && u - c;
    return y ? Math.round(E * 1e3 / y) : void 0;
  };
}
function Jp(e, t) {
  let n = 0;
  const r = 1e3 / t;
  let i = null;
  return function() {
    const s = this === !0, a = Date.now();
    if (s || a - n > r)
      return i && (clearTimeout(i), i = null), n = a, e.apply(null, arguments);
    i || (i = setTimeout(() => (i = null, n = Date.now(), e.apply(null, arguments)), r - (a - n)));
  };
}
const Yn = (e, t, n = 3) => {
  let r = 0;
  const i = Xp(50, 250);
  return Jp((o) => {
    const s = o.loaded, a = o.lengthComputable ? o.total : void 0, l = s - r, u = i(l), c = s <= a;
    r = s;
    const p = {
      loaded: s,
      total: a,
      progress: a ? s / a : void 0,
      bytes: l,
      rate: u || void 0,
      estimated: u && a && c ? (a - s) / u : void 0,
      event: o,
      lengthComputable: a != null
    };
    p[t ? "download" : "upload"] = !0, e(p);
  }, n);
}, Zp = Ze.hasStandardBrowserEnv ? (
  // Standard browser envs have full support of the APIs needed to test
  // whether the request URL is of the same origin as current location.
  function() {
    const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
    let r;
    function i(o) {
      let s = o;
      return t && (n.setAttribute("href", s), s = n.href), n.setAttribute("href", s), {
        href: n.href,
        protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
        host: n.host,
        search: n.search ? n.search.replace(/^\?/, "") : "",
        hash: n.hash ? n.hash.replace(/^#/, "") : "",
        hostname: n.hostname,
        port: n.port,
        pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
      };
    }
    return r = i(window.location.href), function(s) {
      const a = w.isString(s) ? i(s) : s;
      return a.protocol === r.protocol && a.host === r.host;
    };
  }()
) : (
  // Non standard browser envs (web workers, react-native) lack needed support.
  /* @__PURE__ */ function() {
    return function() {
      return !0;
    };
  }()
), Qp = Ze.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(e, t, n, r, i, o) {
      const s = [e + "=" + encodeURIComponent(t)];
      w.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()), w.isString(r) && s.push("path=" + r), w.isString(i) && s.push("domain=" + i), o === !0 && s.push("secure"), document.cookie = s.join("; ");
    },
    read(e) {
      const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
      return t ? decodeURIComponent(t[3]) : null;
    },
    remove(e) {
      this.write(e, "", Date.now() - 864e5);
    }
  }
) : (
  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  }
);
function e2(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function t2(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function Va(e, t) {
  return e && !e2(t) ? t2(e, t) : t;
}
const ss = (e) => e instanceof Be ? { ...e } : e;
function Dt(e, t) {
  t = t || {};
  const n = {};
  function r(u, c, p) {
    return w.isPlainObject(u) && w.isPlainObject(c) ? w.merge.call({ caseless: p }, u, c) : w.isPlainObject(c) ? w.merge({}, c) : w.isArray(c) ? c.slice() : c;
  }
  function i(u, c, p) {
    if (w.isUndefined(c)) {
      if (!w.isUndefined(u))
        return r(void 0, u, p);
    } else return r(u, c, p);
  }
  function o(u, c) {
    if (!w.isUndefined(c))
      return r(void 0, c);
  }
  function s(u, c) {
    if (w.isUndefined(c)) {
      if (!w.isUndefined(u))
        return r(void 0, u);
    } else return r(void 0, c);
  }
  function a(u, c, p) {
    if (p in t)
      return r(u, c);
    if (p in e)
      return r(void 0, u);
  }
  const l = {
    url: o,
    method: o,
    data: o,
    baseURL: s,
    transformRequest: s,
    transformResponse: s,
    paramsSerializer: s,
    timeout: s,
    timeoutMessage: s,
    withCredentials: s,
    withXSRFToken: s,
    adapter: s,
    responseType: s,
    xsrfCookieName: s,
    xsrfHeaderName: s,
    onUploadProgress: s,
    onDownloadProgress: s,
    decompress: s,
    maxContentLength: s,
    maxBodyLength: s,
    beforeRedirect: s,
    transport: s,
    httpAgent: s,
    httpsAgent: s,
    cancelToken: s,
    socketPath: s,
    responseEncoding: s,
    validateStatus: a,
    headers: (u, c) => i(ss(u), ss(c), !0)
  };
  return w.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
    const p = l[c] || i, E = p(e[c], t[c], c);
    w.isUndefined(E) && p !== a || (n[c] = E);
  }), n;
}
const Ha = (e) => {
  const t = Dt({}, e);
  let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: o, headers: s, auth: a } = t;
  t.headers = s = Be.from(s), t.url = Ba(Va(t.baseURL, t.url), e.params, e.paramsSerializer), a && s.set(
    "Authorization",
    "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
  );
  let l;
  if (w.isFormData(n)) {
    if (Ze.hasStandardBrowserEnv || Ze.hasStandardBrowserWebWorkerEnv)
      s.setContentType(void 0);
    else if ((l = s.getContentType()) !== !1) {
      const [u, ...c] = l ? l.split(";").map((p) => p.trim()).filter(Boolean) : [];
      s.setContentType([u || "multipart/form-data", ...c].join("; "));
    }
  }
  if (Ze.hasStandardBrowserEnv && (r && w.isFunction(r) && (r = r(t)), r || r !== !1 && Zp(t.url))) {
    const u = i && o && Qp.read(o);
    u && s.set(i, u);
  }
  return t;
}, n2 = typeof XMLHttpRequest < "u", r2 = n2 && function(e) {
  return new Promise(function(n, r) {
    const i = Ha(e);
    let o = i.data;
    const s = Be.from(i.headers).normalize();
    let { responseType: a } = i, l;
    function u() {
      i.cancelToken && i.cancelToken.unsubscribe(l), i.signal && i.signal.removeEventListener("abort", l);
    }
    let c = new XMLHttpRequest();
    c.open(i.method.toUpperCase(), i.url, !0), c.timeout = i.timeout;
    function p() {
      if (!c)
        return;
      const y = Be.from(
        "getAllResponseHeaders" in c && c.getAllResponseHeaders()
      ), g = {
        data: !a || a === "text" || a === "json" ? c.responseText : c.response,
        status: c.status,
        statusText: c.statusText,
        headers: y,
        config: e,
        request: c
      };
      ja(function(A) {
        n(A), u();
      }, function(A) {
        r(A), u();
      }, g), c = null;
    }
    "onloadend" in c ? c.onloadend = p : c.onreadystatechange = function() {
      !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(p);
    }, c.onabort = function() {
      c && (r(new ee("Request aborted", ee.ECONNABORTED, i, c)), c = null);
    }, c.onerror = function() {
      r(new ee("Network Error", ee.ERR_NETWORK, i, c)), c = null;
    }, c.ontimeout = function() {
      let m = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
      const g = i.transitional || Ra;
      i.timeoutErrorMessage && (m = i.timeoutErrorMessage), r(new ee(
        m,
        g.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
        i,
        c
      )), c = null;
    }, o === void 0 && s.setContentType(null), "setRequestHeader" in c && w.forEach(s.toJSON(), function(m, g) {
      c.setRequestHeader(g, m);
    }), w.isUndefined(i.withCredentials) || (c.withCredentials = !!i.withCredentials), a && a !== "json" && (c.responseType = i.responseType), typeof i.onDownloadProgress == "function" && c.addEventListener("progress", Yn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Yn(i.onUploadProgress)), (i.cancelToken || i.signal) && (l = (y) => {
      c && (r(!y || y.type ? new Yt(null, e, c) : y), c.abort(), c = null);
    }, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
    const E = Yp(i.url);
    if (E && Ze.protocols.indexOf(E) === -1) {
      r(new ee("Unsupported protocol " + E + ":", ee.ERR_BAD_REQUEST, e));
      return;
    }
    c.send(o || null);
  });
}, i2 = (e, t) => {
  let n = new AbortController(), r;
  const i = function(l) {
    if (!r) {
      r = !0, s();
      const u = l instanceof Error ? l : this.reason;
      n.abort(u instanceof ee ? u : new Yt(u instanceof Error ? u.message : u));
    }
  };
  let o = t && setTimeout(() => {
    i(new ee(`timeout ${t} of ms exceeded`, ee.ETIMEDOUT));
  }, t);
  const s = () => {
    e && (o && clearTimeout(o), o = null, e.forEach((l) => {
      l && (l.removeEventListener ? l.removeEventListener("abort", i) : l.unsubscribe(i));
    }), e = null);
  };
  e.forEach((l) => l && l.addEventListener && l.addEventListener("abort", i));
  const { signal: a } = n;
  return a.unsubscribe = s, [a, () => {
    o && clearTimeout(o), o = null;
  }];
}, o2 = function* (e, t) {
  let n = e.byteLength;
  if (!t || n < t) {
    yield e;
    return;
  }
  let r = 0, i;
  for (; r < n; )
    i = r + t, yield e.slice(r, i), r = i;
}, s2 = async function* (e, t, n) {
  for await (const r of e)
    yield* o2(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
}, as = (e, t, n, r, i) => {
  const o = s2(e, t, i);
  let s = 0;
  return new ReadableStream({
    type: "bytes",
    async pull(a) {
      const { done: l, value: u } = await o.next();
      if (l) {
        a.close(), r();
        return;
      }
      let c = u.byteLength;
      n && n(s += c), a.enqueue(new Uint8Array(u));
    },
    cancel(a) {
      return r(a), o.return();
    }
  }, {
    highWaterMark: 2
  });
}, ls = (e, t) => {
  const n = e != null;
  return (r) => setTimeout(() => t({
    lengthComputable: n,
    total: e,
    loaded: r
  }));
}, dr = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ua = dr && typeof ReadableStream == "function", oi = dr && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), a2 = Ua && (() => {
  let e = !1;
  const t = new Request(Ze.origin, {
    body: new ReadableStream(),
    method: "POST",
    get duplex() {
      return e = !0, "half";
    }
  }).headers.has("Content-Type");
  return e && !t;
})(), cs = 64 * 1024, si = Ua && !!(() => {
  try {
    return w.isReadableStream(new Response("").body);
  } catch {
  }
})(), Xn = {
  stream: si && ((e) => e.body)
};
dr && ((e) => {
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
    !Xn[t] && (Xn[t] = w.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
      throw new ee(`Response type '${t}' is not supported`, ee.ERR_NOT_SUPPORT, r);
    });
  });
})(new Response());
const l2 = async (e) => {
  if (e == null)
    return 0;
  if (w.isBlob(e))
    return e.size;
  if (w.isSpecCompliantForm(e))
    return (await new Request(e).arrayBuffer()).byteLength;
  if (w.isArrayBufferView(e))
    return e.byteLength;
  if (w.isURLSearchParams(e) && (e = e + ""), w.isString(e))
    return (await oi(e)).byteLength;
}, c2 = async (e, t) => {
  const n = w.toFiniteNumber(e.getContentLength());
  return n ?? l2(t);
}, u2 = dr && (async (e) => {
  let {
    url: t,
    method: n,
    data: r,
    signal: i,
    cancelToken: o,
    timeout: s,
    onDownloadProgress: a,
    onUploadProgress: l,
    responseType: u,
    headers: c,
    withCredentials: p = "same-origin",
    fetchOptions: E
  } = Ha(e);
  u = u ? (u + "").toLowerCase() : "text";
  let [y, m] = i || o || s ? i2([i, o], s) : [], g, T;
  const A = () => {
    !g && setTimeout(() => {
      y && y.unsubscribe();
    }), g = !0;
  };
  let B;
  try {
    if (l && a2 && n !== "get" && n !== "head" && (B = await c2(c, r)) !== 0) {
      let v = new Request(t, {
        method: "POST",
        body: r,
        duplex: "half"
      }), d;
      w.isFormData(r) && (d = v.headers.get("content-type")) && c.setContentType(d), v.body && (r = as(v.body, cs, ls(
        B,
        Yn(l)
      ), null, oi));
    }
    w.isString(p) || (p = p ? "cors" : "omit"), T = new Request(t, {
      ...E,
      signal: y,
      method: n.toUpperCase(),
      headers: c.normalize().toJSON(),
      body: r,
      duplex: "half",
      withCredentials: p
    });
    let $ = await fetch(T);
    const f = si && (u === "stream" || u === "response");
    if (si && (a || f)) {
      const v = {};
      ["status", "statusText", "headers"].forEach((h) => {
        v[h] = $[h];
      });
      const d = w.toFiniteNumber($.headers.get("content-length"));
      $ = new Response(
        as($.body, cs, a && ls(
          d,
          Yn(a, !0)
        ), f && A, oi),
        v
      );
    }
    u = u || "text";
    let R = await Xn[w.findKey(Xn, u) || "text"]($, e);
    return !f && A(), m && m(), await new Promise((v, d) => {
      ja(v, d, {
        data: R,
        headers: Be.from($.headers),
        status: $.status,
        statusText: $.statusText,
        config: e,
        request: T
      });
    });
  } catch ($) {
    throw A(), $ && $.name === "TypeError" && /fetch/i.test($.message) ? Object.assign(
      new ee("Network Error", ee.ERR_NETWORK, e, T),
      {
        cause: $.cause || $
      }
    ) : ee.from($, $ && $.code, e, T);
  }
}), ai = {
  http: Op,
  xhr: r2,
  fetch: u2
};
w.forEach(ai, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const us = (e) => `- ${e}`, d2 = (e) => w.isFunction(e) || e === null || e === !1, Wa = {
  getAdapter: (e) => {
    e = w.isArray(e) ? e : [e];
    const { length: t } = e;
    let n, r;
    const i = {};
    for (let o = 0; o < t; o++) {
      n = e[o];
      let s;
      if (r = n, !d2(n) && (r = ai[(s = String(n)).toLowerCase()], r === void 0))
        throw new ee(`Unknown adapter '${s}'`);
      if (r)
        break;
      i[s || "#" + o] = r;
    }
    if (!r) {
      const o = Object.entries(i).map(
        ([a, l]) => `adapter ${a} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
      );
      let s = t ? o.length > 1 ? `since :
` + o.map(us).join(`
`) : " " + us(o[0]) : "as no adapter specified";
      throw new ee(
        "There is no suitable adapter to dispatch the request " + s,
        "ERR_NOT_SUPPORT"
      );
    }
    return r;
  },
  adapters: ai
};
function Vr(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new Yt(null, e);
}
function ds(e) {
  return Vr(e), e.headers = Be.from(e.headers), e.data = jr.call(
    e,
    e.transformRequest
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Wa.getAdapter(e.adapter || Sn.adapter)(e).then(function(r) {
    return Vr(e), r.data = jr.call(
      e,
      e.transformResponse,
      r
    ), r.headers = Be.from(r.headers), r;
  }, function(r) {
    return Fa(r) || (Vr(e), r && r.response && (r.response.data = jr.call(
      e,
      e.transformResponse,
      r.response
    ), r.response.headers = Be.from(r.response.headers))), Promise.reject(r);
  });
}
const qa = "1.7.2", ji = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  ji[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const fs = {};
ji.transitional = function(t, n, r) {
  function i(o, s) {
    return "[Axios v" + qa + "] Transitional option '" + o + "'" + s + (r ? ". " + r : "");
  }
  return (o, s, a) => {
    if (t === !1)
      throw new ee(
        i(s, " has been removed" + (n ? " in " + n : "")),
        ee.ERR_DEPRECATED
      );
    return n && !fs[s] && (fs[s] = !0, console.warn(
      i(
        s,
        " has been deprecated since v" + n + " and will be removed in the near future"
      )
    )), t ? t(o, s, a) : !0;
  };
};
function f2(e, t, n) {
  if (typeof e != "object")
    throw new ee("options must be an object", ee.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let i = r.length;
  for (; i-- > 0; ) {
    const o = r[i], s = t[o];
    if (s) {
      const a = e[o], l = a === void 0 || s(a, o, e);
      if (l !== !0)
        throw new ee("option " + o + " must be " + l, ee.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (n !== !0)
      throw new ee("Unknown option " + o, ee.ERR_BAD_OPTION);
  }
}
const li = {
  assertOptions: f2,
  validators: ji
}, gt = li.validators;
class At {
  constructor(t) {
    this.defaults = t, this.interceptors = {
      request: new is(),
      response: new is()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  async request(t, n) {
    try {
      return await this._request(t, n);
    } catch (r) {
      if (r instanceof Error) {
        let i;
        Error.captureStackTrace ? Error.captureStackTrace(i = {}) : i = new Error();
        const o = i.stack ? i.stack.replace(/^.+\n/, "") : "";
        try {
          r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + o) : r.stack = o;
        } catch {
        }
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Dt(this.defaults, n);
    const { transitional: r, paramsSerializer: i, headers: o } = n;
    r !== void 0 && li.assertOptions(r, {
      silentJSONParsing: gt.transitional(gt.boolean),
      forcedJSONParsing: gt.transitional(gt.boolean),
      clarifyTimeoutError: gt.transitional(gt.boolean)
    }, !1), i != null && (w.isFunction(i) ? n.paramsSerializer = {
      serialize: i
    } : li.assertOptions(i, {
      encode: gt.function,
      serialize: gt.function
    }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
    let s = o && w.merge(
      o.common,
      o[n.method]
    );
    o && w.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (m) => {
        delete o[m];
      }
    ), n.headers = Be.concat(s, o);
    const a = [];
    let l = !0;
    this.interceptors.request.forEach(function(g) {
      typeof g.runWhen == "function" && g.runWhen(n) === !1 || (l = l && g.synchronous, a.unshift(g.fulfilled, g.rejected));
    });
    const u = [];
    this.interceptors.response.forEach(function(g) {
      u.push(g.fulfilled, g.rejected);
    });
    let c, p = 0, E;
    if (!l) {
      const m = [ds.bind(this), void 0];
      for (m.unshift.apply(m, a), m.push.apply(m, u), E = m.length, c = Promise.resolve(n); p < E; )
        c = c.then(m[p++], m[p++]);
      return c;
    }
    E = a.length;
    let y = n;
    for (p = 0; p < E; ) {
      const m = a[p++], g = a[p++];
      try {
        y = m(y);
      } catch (T) {
        g.call(this, T);
        break;
      }
    }
    try {
      c = ds.call(this, y);
    } catch (m) {
      return Promise.reject(m);
    }
    for (p = 0, E = u.length; p < E; )
      c = c.then(u[p++], u[p++]);
    return c;
  }
  getUri(t) {
    t = Dt(this.defaults, t);
    const n = Va(t.baseURL, t.url);
    return Ba(n, t.params, t.paramsSerializer);
  }
}
w.forEach(["delete", "get", "head", "options"], function(t) {
  At.prototype[t] = function(n, r) {
    return this.request(Dt(r || {}, {
      method: t,
      url: n,
      data: (r || {}).data
    }));
  };
});
w.forEach(["post", "put", "patch"], function(t) {
  function n(r) {
    return function(o, s, a) {
      return this.request(Dt(a || {}, {
        method: t,
        headers: r ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: o,
        data: s
      }));
    };
  }
  At.prototype[t] = n(), At.prototype[t + "Form"] = n(!0);
});
class Vi {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function(o) {
      n = o;
    });
    const r = this;
    this.promise.then((i) => {
      if (!r._listeners) return;
      let o = r._listeners.length;
      for (; o-- > 0; )
        r._listeners[o](i);
      r._listeners = null;
    }), this.promise.then = (i) => {
      let o;
      const s = new Promise((a) => {
        r.subscribe(a), o = a;
      }).then(i);
      return s.cancel = function() {
        r.unsubscribe(o);
      }, s;
    }, t(function(o, s, a) {
      r.reason || (r.reason = new Yt(o, s, a), n(r.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : this._listeners = [t];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(t) {
    if (!this._listeners)
      return;
    const n = this._listeners.indexOf(t);
    n !== -1 && this._listeners.splice(n, 1);
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new Vi(function(i) {
        t = i;
      }),
      cancel: t
    };
  }
}
function p2(e) {
  return function(n) {
    return e.apply(null, n);
  };
}
function m2(e) {
  return w.isObject(e) && e.isAxiosError === !0;
}
const ci = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
};
Object.entries(ci).forEach(([e, t]) => {
  ci[t] = e;
});
function Ka(e) {
  const t = new At(e), n = ka(At.prototype.request, t);
  return w.extend(n, At.prototype, t, { allOwnKeys: !0 }), w.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
    return Ka(Dt(e, i));
  }, n;
}
const be = Ka(Sn);
be.Axios = At;
be.CanceledError = Yt;
be.CancelToken = Vi;
be.isCancel = Fa;
be.VERSION = qa;
be.toFormData = ur;
be.AxiosError = ee;
be.Cancel = be.CanceledError;
be.all = function(t) {
  return Promise.all(t);
};
be.spread = p2;
be.isAxiosError = m2;
be.mergeConfig = Dt;
be.AxiosHeaders = Be;
be.formToJSON = (e) => za(w.isHTMLForm(e) ? new FormData(e) : e);
be.getAdapter = Wa.getAdapter;
be.HttpStatusCode = ci;
be.default = be;
const _n = be.create({
  baseURL: "/",
  timeout: 100 * 1e3,
  withCredentials: !0,
  headers: {
    common: {
      "X-Requested-With": "XMLHttpRequest"
    },
    post: {
      "Content-Type": "application/json;charset=utf-8"
    }
  }
});
_n.interceptors.request.use(
  (e) => {
    try {
      if (parent.window) {
        const t = parent.window.localStorage.getItem("authorizationKey"), n = parent.window.localStorage.getItem("authorizationValue");
        parent.window.localStorage.getItem("flowtoken"), e.headers.flowtoken = parent.window.localStorage.getItem("flowtoken"), e.headers[t] = n;
      } else
        console.error("只在在流程中心用iframe打开，才能获取token!");
    } catch (t) {
      e.headers.flowtoken = localStorage.getItem("flowtoken");
      const n = window.localStorage.getItem("authorizationKey");
      e.headers[n] = window.localStorage.getItem("authorizationValue"), console.error("获取父窗口的token失败！" + t);
    }
    return e;
  },
  (e) => Promise.reject(e)
);
_n.interceptors.response.use(
  (e) => {
    if (e && e.status == 200) {
      const t = e.data.code, n = e.data.msg;
      return t === "100" ? Promise.resolve(e.data) : t == 400 ? Promise.reject(n) : t === "101" ? (Ft.error(n), Promise.reject(n)) : Promise.reject(e.data);
    } else
      return Promise.reject(e == null ? void 0 : e.data);
  },
  (e) => Promise.reject(e)
);
const h2 = "", Zt = h2 + "/flow/query", Hi = {
  /**
   * 通过业务单据id获取当前任务的审批人列表
   */
  GetCurrTaskApplyersByBusinessKey: Zt + "/getCurrTaskApplyersByBusinessKey",
  /**
   * 预览自定义流程图
   */
  GetCustomFlowSequenceFlows: Zt + "/getCustomFlowSequenceFlows",
  /**
   * 获取高亮线和节点
   */
  GetHighLightedNodeVoByProcessInstanceId: Zt + "/getHighLightedNodeVoByProcessInstanceId",
  /**
   * 查询节点信息
   */
  GetOneActivityVoByProcessInstanceIdAndActivityId: Zt + "/getOneActivityVoByProcessInstanceIdAndActivityId",
  /**
   * 根据ModelKey查询模板信息
   */
  GetBpmnByModelKey: Zt + "/getBpmnByModelKey"
};
function v2(e) {
  return _n({
    method: "GET",
    url: Hi.GetHighLightedNodeVoByProcessInstanceId + "/" + e,
    params: {}
  });
}
function g2(e) {
  return _n({
    method: "GET",
    url: Hi.GetOneActivityVoByProcessInstanceIdAndActivityId + "/" + e.procInstId + "/" + e.elementId,
    params: {}
  });
}
function y2(e) {
  return _n({
    method: "GET",
    url: Hi.GetBpmnByModelKey + "/" + e,
    params: {}
  });
}
function b2(e) {
  return or(e, "flowable:Field");
}
function w2(e, t) {
  return or(e).find((n) => Q(n, t));
}
function Bt(e, t, n = {}) {
  const r = b2(e), i = t.reduce((s, a) => {
    const [l, u = "string"] = a.split(".");
    return s[l] = u, s;
  }, {}), o = {};
  for (const s of r) {
    const a = s.get("name");
    if (i[a]) {
      const l = n[a];
      l ? o[a] = l(s) : o[a] = s.get(i[a]);
    }
  }
  return o;
}
function E2(e) {
  return St(e, "bpmn:ErrorEventDefinition");
}
function S2(e) {
  if (!e)
    return;
  if (typeof e.get("timeDate") < "u")
    return "timeDate";
  if (typeof e.get("timeCycle") < "u")
    return "timeCycle";
  if (typeof e.get("timeDuration") < "u")
    return "timeDuration";
}
function _2(e) {
  return St(e, "bpmn:TimerEventDefinition");
}
function St(e, t) {
  return (pn(e).get("eventDefinitions") || []).find((i) => Q(i, t));
}
function C2(e) {
  return Q(e, "bpmn:ReceiveTask") ? pn(e) : St(e, "bpmn:MessageEventDefinition");
}
function k2(e) {
  return St(e, "bpmn:SignalEventDefinition");
}
function ui(e) {
  return St(e, "bpmn:ConditionalEventDefinition");
}
function T2(e) {
  return St(e, "bpmn:EscalationEventDefinition");
}
function O2(e) {
  return St(e, "bpmn:CompensateEventDefinition");
}
function A2(e) {
  return St(e, "bpmn:TerminateEventDefinition");
}
function Ga(e) {
  return or(
    pn(e),
    "flowable:VariableListenerEventDefinition"
  )[0];
}
const P2 = ["bpmn:UserTask"], Ya = [
  "bpmn:ServiceTask",
  "bpmn:SequenceFlow",
  "bpmn:ScriptTask",
  "bpmn:CallActivity",
  "bpmn:StartEvent",
  "bpmn:EndEvent",
  "bpmn:IntermediateThrowEvent",
  "bpmn:IntermediateCatchEvent"
], ps = (e) => e.type !== "label" && Wr(e, P2), ms = (e) => e.type === "label" ? !1 : Q(e, "bpmn:SequenceFlow") ? Xa(e) : Wr(e, [
  "bpmn:EndEvent",
  "bpmn:StartEvent",
  "bpmn:IntermediateThrowEvent",
  "bpmn:IntermediateCatchEvent"
]) ? !$2(e) : Wr(e, Ya), x2 = {
  "bpmn:UserTask": {
    custom: !0
  }
}, D2 = {
  "bpmn:ServiceTask": (e) => {
    var u;
    const t = e.businessObject, n = t.get("name"), r = n || e.type.replace(/bpmn:|flowable:/, ""), i = ["nodeType"], o = {
      nodeType: e.type
    }, s = {}, a = [];
    n || a.push("header");
    const l = t.get("type");
    if (l)
      switch (i.push("serviceType"), a.push("serviceType"), o.serviceType = l, s.serviceType = "arcoblue", l) {
        case "rest":
          i.push("requestMethod", "requestUrl", "requestBody"), Object.assign(
            o,
            Bt(t, ["requestMethod", "requestUrl", "requestBody.expression"])
          );
          break;
        case "copy":
          i.push("transferToUserNos");
          const c = w2(t, "flowable:IdmCandidateUsers"), p = c == null ? void 0 : c.get("body");
          p ? o.transferToUserNos = (u = JSON.parse(p)) == null ? void 0 : u.map((E) => E.name).join(",") : Object.assign(o, Bt(t, ["transferToUserNos"])), s.transferToUserNos = "arcoblue";
          break;
        case "http":
          i.push("requestUrl", "requestMethod"), Object.assign(o, Bt(t, ["requestUrl", "requestMethod"]));
          break;
        case "dmn":
          i.push("decisionTableReferenceName"), Object.assign(o, Bt(t, ["decisionTableReferenceName"])), s.decisionTableReferenceName = "arcoblue";
          break;
        case "sc":
          i.push("serviceId", "url", "method"), Object.assign(o, Bt(t, ["serviceId", "url", "method"]));
          break;
        case "mail":
          i.push("mailTo", "subject", "mailContent"), Object.assign(
            o,
            Bt(t, ["to.expression", "subject", "html.expression"])
          );
          break;
      }
    return { loading: !1, header: r, attrs: i, values: o, tags: s, i18n: a };
  },
  "bpmn:ScriptTask": (e) => {
    const t = e.businessObject, n = t.get("name"), r = n || e.type.replace("bpmn:", ""), i = ["scriptFormat"], o = {
      scriptFormat: t.scriptFormat
    }, s = {}, a = [];
    return n || a.push("header"), { loading: !1, header: r, attrs: i, values: o, tags: s, i18n: a };
  },
  "bpmn:CallActivity": (e) => {
    const t = e.businessObject, n = t.get("name"), r = n || e.type.replace("bpmn:", ""), i = ["calledInstance", "inheritVariables"], o = {
      calledInstance: t.get("processInstanceName"),
      inheritVariables: t.get("inheritVariables") || "false"
    }, s = { calledInstance: "arcoblue" }, a = ["inheritVariables"];
    return n || a.push("header"), { loading: !1, header: r, attrs: i, values: o, tags: s, i18n: a };
  },
  "bpmn:SequenceFlow": (e) => {
    const n = e.businessObject.get("name"), r = n || e.type.replace("bpmn:", ""), i = ["condition"], o = Xa(e), s = {
      condition: o == null ? void 0 : o.get("body")
    }, a = {}, l = [];
    return n || l.push("header"), { loading: !1, header: r, attrs: i, values: s, tags: a, i18n: l };
  },
  "bpmn:StartEvent": Ln,
  "bpmn:EndEvent": Ln,
  "bpmn:IntermediateThrowEvent": Ln,
  "bpmn:IntermediateCatchEvent": Ln
};
function Ln(e) {
  var B, $, f, R, v;
  const n = e.businessObject.get("name"), r = !1, i = n || e.type.replace("bpmn:", ""), o = ["eventDefinition"], s = {}, a = { eventDefinition: "arcoblue" }, l = ["eventDefinition"];
  n || l.push("header");
  const u = E2(e);
  if (u)
    return o.push("eventDefinitionName"), s.eventDefinition = "Error", s.eventDefinitionName = ((B = u.get("errorRef")) == null ? void 0 : B.name) || "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  const c = k2(e);
  if (c)
    return o.push("eventDefinitionName"), s.eventDefinition = "Signal", s.eventDefinitionName = (($ = c.get("signalRef")) == null ? void 0 : $.name) || "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  const p = C2(e);
  if (p)
    return o.push("eventDefinitionName"), s.eventDefinition = "Message", s.eventDefinitionName = ((f = p.get("messageRef")) == null ? void 0 : f.name) || "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  const E = T2(e);
  if (E)
    return o.push("eventDefinitionName"), s.eventDefinition = "Escalation", s.eventDefinitionName = ((R = E.get("escalationRef")) == null ? void 0 : R.name) || "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  if (O2(e))
    return s.eventDefinition = "Compensate", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  if (A2(e))
    return o.push("terminateAll"), s.eventDefinition = "Terminate", s.terminateAll = E.terminateAll || "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  const g = Ga(e);
  if (g)
    return o.push("variableName", "variableChangeType"), l.push("variableChangeType"), s.eventDefinition = "VariableListener", s.variableName = g.get("variableName") || "-", s.variableChangeType = `var-${g.get("variableChangeType") || "-"}`, { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  const T = ui(e);
  if (T)
    return o.push("conditionExpression"), s.eventDefinition = "Conditional", s.conditionExpression = ((v = T.get("condition")) == null ? void 0 : v.body) || "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  const A = _2(e);
  if (A) {
    s.eventDefinition = "Timer", o.push("timerDefinitionType", "timerEventDefValue"), l.push("timerDefinitionType");
    const d = S2(A) || "";
    return s.timerDefinitionType = d, s.timerEventDefValue = d ? M2(A.get(d)) : "-", { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
  }
  return { loading: r, i18n: l, header: i, attrs: o, values: s, tags: a };
}
function M2(e) {
  return e && e.get("body") || "";
}
function $2(e) {
  return Ga(e) ? !1 : !e.businessObject.eventDefinitions || !e.businessObject.eventDefinitions.length;
}
function Xa(e) {
  const t = pn(e);
  if (Q(t, "bpmn:SequenceFlow"))
    return t.get("conditionExpression");
  if (ui(t))
    return ui(t).get("condition");
}
const L2 = { class: "bpmn-preset-viewer" }, I2 = { class: "node-details_wrap" }, N2 = {
  key: 0,
  class: "node-details-info"
}, B2 = { class: "details_header" }, R2 = { class: "details_label" }, z2 = { class: "details_value" }, F2 = { style: { "padding-right": "8px" } }, j2 = { class: "person-information-grid" }, V2 = { class: "details_special" }, H2 = { class: "header-person-img" }, U2 = ["src"], W2 = { class: "details_label" }, q2 = {
  class: "details_value",
  style: { display: "inline-flex", "align-items": "center" }
}, K2 = { class: "details_label" }, G2 = { class: "details_value" }, Y2 = { class: "details_label" }, X2 = { class: "details_value" }, J2 = { class: "details_label" }, Z2 = { class: "details_value long" }, Q2 = { class: "details_label" }, em = { class: "details_value long" }, tm = { class: "details_label" }, nm = { class: "details_value" }, rm = { class: "details_label" }, im = { class: "details_value" }, om = { class: "details_label" }, sm = { class: "details_value" }, am = { class: "details_label" }, lm = { class: "details_value" }, cm = { class: "details_header" }, um = { class: "details_label" }, dm = { class: "details_value" }, fm = { key: 1 }, Gm = /* @__PURE__ */ pe({
  name: "BpmnPresetViewer",
  __name: "index",
  props: {
    procInstId: {
      type: String,
      required: !0
    },
    modelKey: {
      type: String,
      required: !0
    },
    theme: {
      type: String,
      default: "light"
    },
    local: {
      type: String,
      default: "zh_CN"
    },
    translatePrefix: {
      type: String,
      default: ""
    },
    showDownload: {
      type: Boolean,
      default: !1
    },
    fileName: {
      type: String,
      default: ""
    }
  },
  emits: ["viewer-init", "element-hover", "data-change"],
  setup(e, { expose: t, emit: n }) {
    const r = n, i = e, { locale: o, t: s } = fi(), a = fe(), l = fe(!1), u = fe([]), c = fe({}), p = {
      processing: "arcoblue",
      finish: "green",
      pending: "orangered"
    }, E = sn(), y = (d) => d ? i.translatePrefix + d : "-", m = (d) => {
      if (d)
        return document.body.setAttribute("arco-theme", d);
      const h = document.body.getAttribute("arco-theme") === "dark";
      document.body.setAttribute("arco-theme", h ? "light" : "dark");
    }, g = (d) => {
      var h;
      d ? o.value = d : o.value = o.value === "zh_CN" ? "en_US" : "zh_CN", Pi("local-lang", o.value), (h = E.value) == null || h.get("eventBus").fire("i18n.changed");
    }, T = () => {
      var h;
      const d = (h = E.value) == null ? void 0 : h.get("elementRegistry");
      console.log("registry start...----->", d), console.log("registry bpmnViewer...----->", E.value), d && (u.value = d.filter((_) => ps(_) || ms(_)).map((_) => _.id), console.log("shapeAndPops.value....----->", u.value));
    }, A = (d) => (E.value = d) && r("viewer-init", d), B = async (d, h) => {
      var _, x;
      try {
        const { data: O = {} } = await g2({
          procInstId: i.procInstId,
          elementId: h
        }), I = x2[d];
        if (I.custom) {
          c.value[h] = {
            loading: !1,
            custom: !0,
            ...O
          };
          return;
        }
        const P = {
          loading: !1,
          header: O[I.header],
          attrs: I.attrs
        }, C = {}, z = {};
        for (const k of I.attrs)
          (_ = I.formatters) != null && _[k] ? C[k] = I.formatters[k](O) : C[k] = O[k], (x = I.useTag) != null && x[k] && (z[k] = typeof I.useTag[k] == "function" ? I.useTag[k](O) : I.useTag[k]);
        c.value[h] = { ...P, values: C, tags: z };
      } catch (O) {
        Ft.error((O == null ? void 0 : O.message) || "请求失败");
      } finally {
        c.value[h].loading = !1;
      }
    }, $ = (d) => {
      if (!c.value[d.id]) {
        if (ps(d))
          return c.value[d.id] = { loading: !0 }, B(d.type, d.id);
        if (ms(d))
          for (const h of Ya)
            Q(d, h) && (c.value[d.id] = D2[h](d));
      }
    }, f = async (d, h) => {
      var _, x, O, I, P;
      if ((_ = E.value) == null || _.clear(), !d && !h) {
        Ft.error("modelKey和procInstId不能同时为空！");
        return;
      }
      try {
        await Ur(), u.value = [], c.value = {}, l.value = !0;
        const { data: C, success: z, msg: k } = h ? await v2(h) : await y2(d);
        if (z) {
          const {
            activeActivityIds: F = [],
            hisActiveActivityIds: U = [],
            modelXml: Z,
            highLightedFlows: te = []
          } = C || {};
          if (!Z) return;
          await ((x = a.value) == null ? void 0 : x.createNewProcess(Z)), h && ((O = a.value) == null || O.setPassedNodes([...te, ...U]), (I = a.value) == null || I.setActiveNodes([...F]), (P = a.value) == null || P.setProcessingMarker([...F]), T());
        } else
          Ft.error(k);
        r("data-change", C);
      } finally {
        l.value = !1;
      }
    };
    return ze(
      () => i.local,
      (d) => g(d),
      { immediate: !0 }
    ), ze(
      () => i.theme,
      (d) => m(d),
      { immediate: !0 }
    ), ze(
      () => ({ procInstId: i.procInstId, modelKey: i.modelKey }),
      ({ procInstId: d, modelKey: h }) => f(h, d),
      { immediate: !0 }
    ), t({ reloadViewerXML: f, downloadProcess: async (d, h) => {
      var _;
      (_ = a.value) == null || _.downloadProcess(d, h);
    }, toggleTheme: m, toggleLang: g, downloadProcessAsPng: async (d) => {
      var h;
      (h = a.value) == null || h.downloadProcessAsPng(d);
    } }), (d, h) => {
      const _ = Vf, x = Rf, O = Lf, I = Of, P = Ef;
      return W(), oe("div", L2, [
        X(zd, {
          ref_key: "viewer",
          ref: a,
          loading: M(l),
          theme: e.theme,
          local: e.local,
          "translate-prefix": e.translatePrefix,
          "show-download": e.showDownload,
          "file-name": e.fileName,
          "in-preset": "",
          onViewerInit: A,
          onViewerDestroy: A,
          onElementHover: $
        }, null, 8, ["loading", "theme", "local", "translate-prefix", "show-download", "file-name"]),
        (W(!0), oe(lt, null, mr(M(u), (C) => (W(), ye(P, {
          key: C,
          "selector-parent": M(a).$el,
          "z-index": 8888,
          target: `[data-element-id=${C}]`
        }, {
          default: ce(() => [
            X(M(wi), {
              loading: M(c)[C] && M(c)[C].loading
            }, {
              default: ce(() => {
                var z;
                return [
                  G("div", I2, [
                    M(c)[C] ? (W(), oe("div", N2, [
                      M(c)[C].custom ? (W(), oe(lt, { key: 0 }, [
                        G("div", B2, re(M(c)[C].name), 1),
                        G("div", R2, re(M(s)(y("approver"))), 1),
                        G("div", z2, [
                          G("div", {
                            class: "approval-user-list",
                            style: wt({ "--approval-num": M(c)[C].approvalVos.length })
                          }, [
                            (W(!0), oe(lt, null, mr(M(c)[C].approvalVos, (k) => (W(), ye(M(tn), {
                              key: k.code,
                              position: "bottom",
                              style: { zIndex: 9999 },
                              title: M(s)(y("Personnel information"))
                            }, {
                              content: ce(() => [
                                G("div", j2, [
                                  G("div", V2, [
                                    G("div", H2, [
                                      k.headerImg ? (W(), oe("img", {
                                        key: 0,
                                        src: k.headerImg,
                                        alt: "image"
                                      }, null, 8, U2)) : Pe("", !0),
                                      !k.headerImg && k.sex === 1 ? (W(), ye(_, { key: 1 })) : Pe("", !0),
                                      !k.headerImg && k.sex === 2 ? (W(), ye(x, { key: 2 })) : Pe("", !0)
                                    ])
                                  ]),
                                  G("div", W2, re(M(s)(y("Person name"))), 1),
                                  G("div", q2, [
                                    G("span", null, re(k.name), 1),
                                    k.sex === 1 ? (W(), ye(O, {
                                      key: 0,
                                      color: "#0099FF"
                                    })) : Pe("", !0),
                                    k.sex === 2 ? (W(), ye(I, {
                                      key: 1,
                                      color: "#FF99CC"
                                    })) : Pe("", !0)
                                  ]),
                                  G("div", K2, re(M(s)(y("Job number"))), 1),
                                  G("div", G2, re(k.code), 1),
                                  G("div", Y2, re(M(s)(y("Mobile phone"))), 1),
                                  G("div", X2, re(k.mobile || "-"), 1),
                                  G("div", J2, re(M(s)(y("Mail"))), 1),
                                  G("div", Z2, re(k.email || "-"), 1),
                                  G("div", Q2, re(M(s)(y("Affiliation"))), 1),
                                  G("div", em, re(`${k.companyName || "-"}${k.deptName ? " - " + k.deptName : ""}`), 1)
                                ])
                              ]),
                              default: ce(() => [
                                X(M(xr), {
                                  size: "small",
                                  color: k.status ? "arcoblue" : "orangered"
                                }, {
                                  default: ce(() => [
                                    G("span", F2, re(k.name), 1),
                                    k.status ? (W(), ye(M(Pd), {
                                      key: 0,
                                      size: 12
                                    })) : (W(), ye(M(xd), {
                                      key: 1,
                                      size: 12
                                    }))
                                  ]),
                                  _: 2
                                }, 1032, ["color"])
                              ]),
                              _: 2
                            }, 1032, ["title"]))), 128))
                          ], 4)
                        ]),
                        G("div", tm, re(M(s)(y("statusName"))), 1),
                        G("div", nm, [
                          X(M(xr), {
                            color: p[M(c)[C].status] || "arcoblue"
                          }, {
                            default: ce(() => [
                              Je(re(M(c)[C].statusName || "-"), 1)
                            ]),
                            _: 2
                          }, 1032, ["color"])
                        ]),
                        G("div", rm, re(M(s)(y("startDate"))), 1),
                        G("div", im, re(M(c)[C].startDate || "-"), 1),
                        G("div", om, re(M(s)(y("endDate"))), 1),
                        G("div", sm, re(M(c)[C].status === "processing" ? "-" : M(c)[C].endDate || "-"), 1),
                        G("div", am, re(M(s)(y("duration"))), 1),
                        G("div", lm, re(M(c)[C].status === "processing" ? "-" : M(c)[C].duration || "-"), 1)
                      ], 64)) : (W(), oe(lt, { key: 1 }, [
                        G("div", cm, re((z = M(c)[C].i18n) != null && z.includes("header") ? M(s)(M(c)[C].header) : M(c)[C].header), 1),
                        (W(!0), oe(lt, null, mr(M(c)[C].attrs, (k) => {
                          var F, U, Z, te, we;
                          return W(), oe(lt, { key: k }, [
                            G("div", um, re(M(s)(y(k))), 1),
                            G("div", dm, [
                              (F = M(c)[C].tags) != null && F[k] ? (W(), ye(M(xr), {
                                key: 0,
                                size: "small",
                                color: ((U = M(c)[C].tags) == null ? void 0 : U[k]) || "arcoblue"
                              }, {
                                default: ce(() => {
                                  var ve, ke, Ee;
                                  return [
                                    Je(re((ve = M(c)[C].i18n) != null && ve.includes(k) ? M(s)(y((ke = M(c)[C].values) == null ? void 0 : ke[k])) : ((Ee = M(c)[C].values) == null ? void 0 : Ee[k]) || "-"), 1)
                                  ];
                                }),
                                _: 2
                              }, 1032, ["color"])) : (W(), oe("span", fm, re((Z = M(c)[C].i18n) != null && Z.includes(k) ? M(s)(y((te = M(c)[C].values) == null ? void 0 : te[k])) : ((we = M(c)[C].values) == null ? void 0 : we[k]) || "-"), 1))
                            ])
                          ], 64);
                        }), 128))
                      ], 64))
                    ])) : Pe("", !0)
                  ])
                ];
              }),
              _: 2
            }, 1032, ["loading"])
          ]),
          _: 2
        }, 1032, ["selector-parent", "target"]))), 128))
      ]);
    };
  }
});
export {
  Km as BpmnMocker,
  Gm as BpmnPresetViewer,
  zd as BpmnViewer,
  Ef as TippyPopover
};
